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.
Currently you have something like
The plugin did not specify an instance class.
but the message could be improved by specify the actual plugin_id so you automatically know where to look for.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1726794-factory-message.patch | 1.03 KB | dawehner |
Comments
Comment #1
dawehnerHere is a small patch for that.
Comment #3
dawehner#1: 1726794-factory-message.patch queued for re-testing.
Comment #4
amitaibuMaybe better use
format_string()
instead ofsprtintf()
?Comment #5
dawehnerWell the problem is that these files are part of the component so they should be decoupled from the actual drupal system.
Comment #6
aspilicious CreditAttribution: aspilicious commentedOh god please yes, this is so anoying :)
Comment #7
EclipseGc CreditAttribution: EclipseGc commentedadding tag, I'm ++ on this in general, I will try to get someone who's using it to rtbc it shortly.
Eclipse
Comment #8
EclipseGc CreditAttribution: EclipseGc commentedcross post, sorry.
Comment #9
webchickGood catch. I actually see this as more of a task than a feature request, because the exception message as-is is not helpful.
Committed and pushed to 8.x. Thanks!