Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ae84ddb

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /