Browse Source

only output debug for fatal errors

pull/39/head
Aaron Parecki 7 years ago
parent
commit
03a7598cf7
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      public/index.php

+ 1
- 1
public/index.php View File

@ -34,7 +34,7 @@ try {
function shutdown() { function shutdown() {
$error = error_get_last(); $error = error_get_last();
if($error['type'] !== 0) {
if($error['type'] === E_ERROR) {
header('HTTP/1.1 500 Server Error'); header('HTTP/1.1 500 Server Error');
header('X-PHP-Error-Type: '.$error['type']); header('X-PHP-Error-Type: '.$error['type']);
header('X-PHP-Error-Message: '.$error['message']); header('X-PHP-Error-Message: '.$error['message']);

Loading…
Cancel
Save