Skip to content

Commit 8d19e56

Browse files
committed
fix exception handling
1 parent 6d9926e commit 8d19e56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ExceptionPrinter/DevelopmentExceptionPrinter.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ public function dumpTrace(Exception $e)
9595
$argDesc = $this->dumpArgs($entry['args']);
9696

9797
$this->logger->info(sprintf(" %d) %s%s%s(%s)", $idx, @$entry['class'], @$entry['type'], $entry['function'], $argDesc));
98-
$this->logger->info(sprintf(" from %s: %d", $entry['file'], $entry['line']));
98+
99+
if (isset($entry['file'])) {
100+
$this->logger->info(sprintf(" from %s: %d", @$entry['file'], @$entry['line']));
101+
}
102+
99103
$this->logger->newline();
100104
}
101105
$this->logger->newline();

0 commit comments

Comments
 (0)