Skip to content

Commit

Permalink
Merge pull request #85 from devosc/master
Browse files Browse the repository at this point in the history
add error response code
  • Loading branch information
devosc committed Dec 21, 2016
2 parents 76e139c + f7f8a76 commit 57feafc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Exception/ErrorException.php
Expand Up @@ -37,6 +37,8 @@ static function handler($severity, $message, $file, $line)

$exception = new self($message, 0, $severity, $file, $line);

http_response_code(500);

include __DIR__ . '/../../view/exception.phtml';

exit(static::EXIT_CODE);
Expand Down

0 comments on commit 57feafc

Please sign in to comment.