Merge pull request #1178 from flarum/Luceos-patch-1

Update HandleErrors.php
This commit is contained in:
Franz Liedke 2017-05-09 08:57:26 +02:00 committed by GitHub
commit b47fbf9732

View File

@ -60,11 +60,11 @@ class HandleErrors
try {
return $out($request, $response);
} catch (Exception $e) {
return $this->formatException($e);
return $this->formatException($e, $request, $response, $out);
}
}
protected function formatException(Exception $error)
protected function formatException(Exception $error, Request $request, Response $response, callable $out = null)
{
$status = 500;
$errorCode = $error->getCode();