From 16a8a4e6d3b4557b5e1288746d1fff31da1c868b Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Sat, 11 Jan 2025 13:25:42 +0100 Subject: [PATCH] Show stack trace for uncaught exceptions --- src/main/php/xp/web/Runner.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/php/xp/web/Runner.class.php b/src/main/php/xp/web/Runner.class.php index 46b27ad6..ca281dc8 100755 --- a/src/main/php/xp/web/Runner.class.php +++ b/src/main/php/xp/web/Runner.class.php @@ -92,7 +92,7 @@ public static function main($args) { Console::$err->writeLine("\033[33m@xp.web.Runner\033[0m"); Console::$err->writeLine("\033[41;1;37m ERROR \033[0;37m {$e->getMessage()}\033[0m"); Console::$err->writeLine(); - Console::$err->writeLine(($e->getCause() ?? $e)->compoundMessage()); + Console::$err->writeLine($e); return 1; } }