mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Debug pass-through exceptions for Ignition (#11773)
* pass-through exceptions for ignition * Warn when APP_DEBUG is enabled
This commit is contained in:
@@ -48,9 +48,11 @@ class Handler extends ExceptionHandler
|
||||
}
|
||||
|
||||
// try to upgrade generic exceptions to more specific ones
|
||||
foreach ($this->upgradable as $class) {
|
||||
if ($new = $class::upgrade($exception)) {
|
||||
return parent::render($request, $new);
|
||||
if (!config('app.debug')) {
|
||||
foreach ($this->upgradable as $class) {
|
||||
if ($new = $class::upgrade($exception)) {
|
||||
return parent::render($request, $new);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user