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 9951a1e commit ad4c4aaCopy full SHA for ad4c4aa
plugins/exception-render/src/MixerApiExceptionRenderer.php
@@ -71,12 +71,20 @@ public function render(): ResponseInterface
71
}
72
$response = $response->withStatus($code);
73
74
+ $exceptions = [$exception];
75
+ $previous = $exception->getPrevious();
76
+ while ($previous != null) {
77
+ $exceptions[] = $previous;
78
+ $previous = $previous->getPrevious();
79
+ }
80
+
81
$viewVars = [
82
'exception' => (new ReflectionClass($exception))->getShortName(),
83
'message' => $message,
84
'url' => h($url),
85
'code' => $code,
86
'error' => $exception,
87
+ 'exceptions' => $exceptions,
88
];
89
90
if ($this->error instanceof ValidationException) {
0 commit comments