Skip to content

Commit 90d500b

Browse files
committed
fix: show error based on app debug config instead of environment
1 parent 19451ec commit 90d500b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootstrap/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
->setStatusCode($statusCode);
6464
} else {
6565
// Show standard modal for easier debugging locally
66-
if (app()->isLocal() && $statusCode === 500) {
66+
if (app()->hasDebugModeEnabled() && $statusCode === 500) {
6767
return $response;
6868
}
6969
// Return JSON response for PrimeVue toast to display, handled by Inertia router event listener

0 commit comments

Comments
 (0)