Reputation: 5075
I'm trying to set up custom error handling, so I setup an ErrorController.php file within the default module, under the controllers directory. However, when I try to go to access an invalid controller, an error is shown that an uncaught exception occurred. This bypasses the ErrorController file though, and when I print the contents of the response object, it does not show any exceptions. Does anyone know what I might be doing wrong here? Cheers!
Upvotes: 0
Views: 532
Reputation: 5075
Ok I fixed the issue, apparently all I needed to do was add the following code: $front->throwExceptions(false);
Upvotes: 1