Commit Graph

16 Commits

Author SHA1 Message Date
Samuel Georges d02d9ba674 Minor improvement to error handling 2015-05-07 18:00:57 +10:00
Samuel Georges 58ace7ee6c The Twig runtime error is not very useful
Use the previous exception to provide more information
2015-05-02 18:11:26 +10:00
Samuel Georges f0c7b66576 Adds minor safeguard to #1044
^- For objects that can be cast as strings and do not interface Symfony's Response
2015-04-11 11:19:53 +10:00
Matīss Jānis Āboltiņš 26d92d282f Fixed custom error pages outputting headers
If we don't have this method called, then the controller returns an object. From then on, [Symfony converts this object in to a string](https://github.com/symfony/HttpFoundation/blob/master/Response.php#L406). This string is **not just the content of the view**, but the headers as well.

After attaching this method, `handleCustomError()` returns a string and everything works as expected.
2015-04-02 09:59:07 +03:00
Samuel Georges 0abc2de0d1 ApplcationException -> ApplicationException 2015-02-19 00:35:14 +11:00
Samuel Georges 7b52e07b65 Overhaul exceptions, rename triggerapi display -> show 2015-02-16 21:16:43 +11:00
Samuel Georges b1b700368f Radical reorg of some classes 2015-01-28 11:49:54 +11:00
gergo85 f0005d196b Cleanup
Remove whitespaces.
2015-01-03 12:41:23 +01:00
Samuel Georges 33be75af10 Config item `cms.customErrorPage` is deprecated, the setting `app.debug` should be used instead. 2014-12-06 13:22:57 +11:00
Sam Georges 2011a21e6f Minor 2014-11-01 12:03:38 +11:00
Sam Georges c83797231d Subsequent expressions are on a new line (see developer guide > PSR exceptions) 2014-11-01 12:00:45 +11:00
Stefan Talen f85087eac6 Updating modules/system 2014-10-18 11:58:50 +02:00
Sam Georges 45811dfb95 Lean code 2014-09-20 17:56:59 +10:00
Sam Georges 070667ebe0 Improve CMS Exception handler.
Previously Twig syntax errors inside a component partial would show the incorrect file and line number. This is fixed.
Also simplified the approach so the stack trace is not hidden inside a closure.
2014-06-24 14:58:46 +10:00
Pascal Borreli 459c8e0cfa Fixed typos 2014-05-17 18:08:01 +02:00
Sam Georges 71a5dd67ab Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00