Needs work
Project:
Drupal core
Version:
main
Component:
entity system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2026 at 13:30 UTC
Updated:
9 Apr 2026 at 10:59 UTC
Jump to comment: Most recent
wrapSchemaException() can be called from onEntityTypeCreate(), in which case this is not correct:
> $message = 'Exception thrown while performing a schema update.';
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
joachim commentedI'm not sure what the best fix is here.
I would be inclined to say we need better granularity for handling the exceptions, but I don't fully understand what the wrapSchemaException is doing.
Comment #5
joachim commentedOk, having read the code, I'd say to add an entire $message parameter to wrapSchemaException().
Though in the other place where this is done (the renderer), I do find it confusing to have an error message as a parameter when there isn't necessarily an error.