Skip to content

Commit

Permalink
Add rethrowFinalException option (false) in default config
Browse files Browse the repository at this point in the history
Introduces a setting to tell Imbo to throw the exception (again) instead of converting it to a fatal error. This allows us to keep the stack trace intact for development.
  • Loading branch information
matslindh committed Nov 15, 2016
1 parent 3aebd4f commit 93337f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/config.default.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@
return new Image\Identifier\Generator\RandomString();
},

/**
* Keep errors as exceptions
*
* By default Imbo will catch any exceptions thrown internally and instead trigger a
* user error with the exception message. If you set this option to `true`, Imbo will
* instead rethrow the generated exception, giving you a full stack trace in your PHP
* error log. This should not be enabled in production, unless you have configured
* PHP in the recommended way with a separate error_log and display_errors=Off.
*/
'rethrowFinalException' => false,

/**
* Whether to content negotiate images or not. If set to true, Imbo will try to find a
* suitable image format based on the Accept-header received. If set to false, it will
Expand Down

0 comments on commit 93337f4

Please sign in to comment.