File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,8 @@ public function throwException(Throwable $exception): void
287287 $ this ->getEventStream (function () use ($ exception ) {
288288 /** @var ErrorHandler $errorHandler */
289289 $ errorHandler = Craft::$ app ->getErrorHandler ();
290+ $ errorHandler ->logException ($ exception );
291+
290292 if ($ errorHandler ->showExceptionDetails ()) {
291293 $ event = new PatchElements ($ errorHandler ->renderFile ($ errorHandler ->exceptionView , [
292294 'exception ' => $ exception ,
@@ -295,6 +297,7 @@ public function throwException(Throwable $exception): void
295297 $ message = Craft::t ('app ' , 'A server error occurred. ' );
296298 $ event = new ExecuteScript ('console.error( ' . json_encode ($ message ) . '); ' );
297299 }
300+
298301 echo $ event ->getOutput ();
299302 })->send ();
300303
You can’t perform that action at this time.
0 commit comments