]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/front/controller/visitor/ErrorController.php
Dislay an error if an exception occurs in the error handler
[github/shaarli/Shaarli.git] / application / front / controller / visitor / ErrorController.php
index 10aa84c806ea444b85a692e1d6d9d188eed4cba4..8da11172ffa52c6c8ae5967760b5a5043c05cca7 100644 (file)
@@ -28,10 +28,7 @@ class ErrorController extends ShaarliVisitorController
             // Internal error (any other Throwable)
             if ($this->container->conf->get('dev.debug', false)) {
                 $this->assignView('message', $throwable->getMessage());
-                $this->assignView(
-                    'stacktrace',
-                    nl2br(get_class($throwable) .': '. PHP_EOL . $throwable->getTraceAsString())
-                );
+                $this->assignView('stacktrace', exception2text($throwable));
             } else {
                 $this->assignView('message', t('An unexpected error occurred.'));
             }