Debug pass-through exceptions for Ignition (#11773)

* pass-through exceptions for ignition

* Warn when APP_DEBUG is enabled
This commit is contained in:
Tony Murray
2020-06-05 11:50:01 -05:00
committed by GitHub
parent 9836aab818
commit 6da2f43e6b
2 changed files with 9 additions and 3 deletions

View File

@@ -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);
}
}
}