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 fc118d7 commit aa5c829Copy full SHA for aa5c829
src/SPC/exception/ExceptionHandler.php
@@ -159,7 +159,9 @@ public static function handleSPCException(SPCException $e): void
159
public static function handleDefaultException(\Throwable $e): void
160
{
161
$class = get_class($e);
162
- self::logError("✗ Unhandled exception {$class}:\n\t{$e->getMessage()}\n");
+ $file = $e->getFile();
163
+ $line = $e->getLine();
164
+ self::logError("✗ Unhandled exception {$class} on {$file} line {$line}:\n\t{$e->getMessage()}\n");
165
self::logError('Stack trace:');
166
self::logError(ConsoleColor::gray($e->getTraceAsString()) . PHP_EOL, 4);
167
self::logError('⚠ Please report this exception to: https://github.com/crazywhalecc/static-php-cli/issues');
0 commit comments