Skip to content

Commit ae84ddb

Browse files
authored
Merge pull request #372 from connorabbas/develop
Fix - Show error modal based on app debug config instead of environment
2 parents 19451ec + 90d500b commit ae84ddb

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)