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 a3a0b39 commit 76dfc9aCopy full SHA for 76dfc9a
1 file changed
src/View/Antlers/Parser.php
@@ -1427,9 +1427,16 @@ protected function viewException($e, $data)
1427
$exception->setSolution($e->getSolution());
1428
}
1429
1430
+ $trace = $exception->getPrevious()->getTrace();
1431
+
1432
+ array_unshift($trace, [
1433
+ 'file' => $e->getFile(),
1434
+ 'line' => $e->getLine(),
1435
+ ]);
1436
1437
$traceProperty = new ReflectionProperty('Exception', 'trace');
1438
$traceProperty->setAccessible(true);
- $traceProperty->setValue($exception, $exception->getPrevious()->getTrace());
1439
+ $traceProperty->setValue($exception, $trace);
1440
1441
$exception->setView($this->view);
1442
$exception->setViewData($this->getViewDataForException($data));
0 commit comments