Browse Source

improve debug message for #520

Maurits van der Schee 6 years ago
parent
commit
e6115e3633
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      api.php

+ 2
- 1
api.php View File

@@ -5425,7 +5425,8 @@ class Api
5425 5425
             }
5426 5426
             $response = $this->responder->error(ErrorCode::ERROR_NOT_FOUND, $e->getMessage());
5427 5427
             if ($this->debug) {
5428
-                $response->addHeader('X-Debug-Info', 'Exception in ' . $e->getFile() . ' on line ' . $e->getLine());
5428
+                $response->addHeader('X-Exception-Message', $e->getMessage());
5429
+                $response->addHeader('X-Exception-File', $e->getFile() . ':' . $e->getLine());
5429 5430
             }
5430 5431
         }
5431 5432
         return $response;

Loading…
Cancel
Save