Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
If a post update throws an exception it's not properly reported and instead you see an error about severity_level as a placeholder. This became more of problem when #3295625: Remove deprecated code from FormattableMarkup landed.
Steps to reproduce
Trigger an exception in a post update. The update system should report the error gracefully.
Proposed resolution
Unset severity_level. This is major bug because the update system is not reporting the correct error.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/a
Comment | File | Size | Author |
---|---|---|---|
#2 | 3295625-2.patch | 3.92 KB | alexpott |
| |||
#2 | 3295625-2-test-only.patch | 3.32 KB | alexpott |
Comments
Comment #2
alexpottComment #4
catchLooks tidy and the test fails nicely.
Comment #6
larowlanCommitted to 10.1.x and 10.0.x
Moving to 9.5.x for a test run
Comment #7
alexpottLet's see if this passes on 9.4.x and 9.5.x - the patch is not so important because in 9.x we emit a silenced deprecation that no one sees but it would be nice to not do that.
Comment #8
andypostyes, it passed
Comment #11
larowlanCherry picked to 9.5.x and 9.4.x