Skip to content

Commit 39ee08a

Browse files
committed
tweak: output basic 404 without stack trace
1 parent ac9a229 commit 39ee08a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dispatch/Dispatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ public function generateBasicErrorResponse(
261261
$errorMessage = "The server could not find the requested resource.";
262262

263263
if(!$this->config->getBool("app.production")) {
264-
$detail .= " Additionally, there was no error page found in your application at $errorPageDir/$errorStatusCode.html";
264+
$detail .= " Additionally, there was no error page found in your application at <strong>$errorPageDir/$errorStatusCode.html</strong>";
265265
}
266266
}
267267
}
268268

269-
if(!$this->config->getBool("app.production")) {
269+
if($errorStatusCode >= 500 && !$this->config->getBool("app.production")) {
270270
$detail .= implode(":", [
271271
$actualThrowable->getFile(),
272272
$actualThrowable->getLine(),

0 commit comments

Comments
 (0)