Skip to content

Commit

Permalink
Show stack trace for uncaught exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 11, 2025
1 parent 310ae66 commit 16a8a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/xp/web/Runner.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 16a8a4e

Please sign in to comment.