Update HandleErrors.php

@franzliedke forgot to make variables available to the method, just triggered this but got a warning that all three variables are undefined.
This commit is contained in:
Daniël Klabbers 2017-05-08 16:45:58 +02:00 committed by GitHub
parent 70fd50314d
commit dfc9b5a286

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