Handle missing 'file' in stack trace
This commit is contained in:
parent
3adc1b81fb
commit
8e6acbbc70
1 changed files with 6 additions and 0 deletions
|
@ -329,6 +329,12 @@
|
|||
self::out('Stack Trace:');
|
||||
foreach($trace as $item)
|
||||
{
|
||||
if(!isset($item['file']))
|
||||
{
|
||||
self::out(' - ' . self::formatColor(json_encode($item), ConsoleColors::RED->value));
|
||||
continue;
|
||||
}
|
||||
|
||||
self::out( ' - ' . self::formatColor($item['file'], ConsoleColors::RED->value) . ':' . $item['line']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue