1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 08:11:27 +02:00

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

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();