We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e63f98a commit e6115e3Copy full SHA for e6115e3
api.php
@@ -5425,7 +5425,8 @@ public function handle(Request $request): Response
5425
}
5426
$response = $this->responder->error(ErrorCode::ERROR_NOT_FOUND, $e->getMessage());
5427
if ($this->debug) {
5428
- $response->addHeader('X-Debug-Info', 'Exception in ' . $e->getFile() . ' on line ' . $e->getLine());
+ $response->addHeader('X-Exception-Message', $e->getMessage());
5429
+ $response->addHeader('X-Exception-File', $e->getFile() . ':' . $e->getLine());
5430
5431
5432
return $response;
0 commit comments