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.
2 parents c4ff7c7 + 2a7f2f7 commit 43cf748Copy full SHA for 43cf748
system/Debug/Exceptions.php
@@ -119,6 +119,11 @@ public function exceptionHandler(Throwable $exception)
119
120
[$statusCode, $exitCode] = $this->determineCodes($exception);
121
122
+ // Get the first exception.
123
+ while ($prevException = $exception->getPrevious()) {
124
+ $exception = $prevException;
125
+ }
126
+
127
if ($this->config->log === true && ! in_array($statusCode, $this->config->ignoreCodes, true)) {
128
log_message('critical', "{message}\nin {exFile} on line {exLine}.\n{trace}", [
129
'message' => $exception->getMessage(),
0 commit comments