Skip to content

Commit e6115e3

Browse files
committed
improve debug message for #520
1 parent e63f98a commit e6115e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5425,7 +5425,8 @@ public function handle(Request $request): Response
54255425
}
54265426
$response = $this->responder->error(ErrorCode::ERROR_NOT_FOUND, $e->getMessage());
54275427
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());
54295430
}
54305431
}
54315432
return $response;

0 commit comments

Comments
 (0)