Feature proposal #6562
closedImplement better error handling
Description
Add a try-catch around the execution of an action and output the error if debugging is enabled otherwise allow it to silently fail. Error usages within actions themselves should then just be changed to throw an exception.
Updated by krileon over 7 years ago
If Joomla OR action debugging is enabled then it should output the exceptions otherwise just suppress them. This should prevent out of date APIs, etc.. from causing fatal crashes from CB Auto Actions.
Updated by krileon over 7 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Improved error handling with an error function for actions. That then is passed to the auto action table object. If debug is enabled it'll output to the Joomla message queue instead of randomly throwing a var dump into the page. Action trigger and execute from auto action table object are also enclosed in a try catch to catch api errors (exception message will be set to an error) to try and prevent blocking from fatal errors.