We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5437a4f commit 0e2800eCopy full SHA for 0e2800e
system/Debug/ExceptionHandler.php
@@ -75,8 +75,10 @@ public function handle(
75
);
76
}
77
78
+ // Handles non-HTML requests.
79
if (! str_contains($request->getHeaderLine('accept'), 'text/html')) {
- $data = (ENVIRONMENT === 'development' || ENVIRONMENT === 'testing')
80
+ // If display_errors is enabled, shows the error details.
81
+ $data = $this->isDisplayErrorsEnabled()
82
? $this->collectVars($exception, $statusCode)
83
: '';
84
@@ -135,6 +137,7 @@ protected function determineView(
135
137
$view = 'production.php';
136
138
139
if ($this->isDisplayErrorsEnabled()) {
140
141
$view = 'error_exception.php';
142
143
0 commit comments