View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0025162||mantisbt||plug-ins||public||2019-01-07 09:49||2019-08-25 12:36|
|Target Version||2.22.0||Fixed in Version||2.22.0|
|Summary||0025162: Improve plugin schema upgrade error message|
While developing plugins is easier to have issues due to minor errors.
<b>Upgrading the plugin schema failed in block #10<b>
After digging a little bit on the code I've understood that the #NUMBER is the element of the array returned by the schema() that I've created.
My proposal is a silly one:
|Tags||No tags attached.|
I agree that providing details / context about the error would be a useful addition to plugin API.
Displaying the offending SQL statement would be useful for context, but I don't think that the suggestion to insert JSON within the error message is the right approach.
It would be even more useful to provide the actual error message returned by the DB (i.e.
MantisBT: master 4cae8782
|Improve plugin schema upgrade error message
The message now includes the actual database error, as well as the
offending SQL statement.
|mod - core/plugin_api.php||Diff File|
|mod - lang/strings_english.txt||Diff File|