Page 1 of 1

error handling interface

Posted: 2016-04-05 02:41
by grimblefritz
I have a page that contains a field (hidden from the user) that is used to contain a custom build value, which in turn must be a unique value. Without going into all the logic, when this field is updated before insert/update, and the result is not unique, the error is captured (so far so good) and the return is an ugly page with a not so helpful one-line error message. No actions, no option edit and try again, etc.

Can this be corrected, to something more useful/friendly?

Also, in general, is there a hook interface to alter error handling? For example, in this case I would like to loop back to the form with an error message added to the offending field(s). Rather than a generic "not unique" message, I could provide instructions on how to correct the problem that would be specific to the application.

Re: error handling interface

Posted: 2016-04-05 11:40
by a.gneady
We plan indeed to improve error handling for this case in the upcoming release. Stay tuned!