Skip to content

Commit c005d4e

Browse files
committed
more debug info for exceptions
1 parent 17a2475 commit c005d4e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/CLI.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public function fatal($error, array $context = array())
138138
$code = 0;
139139
if (is_object($error) && is_a($error, 'Exception')) {
140140
/** @var Exception $error */
141+
$this->debug(get_class($error) . ' caught in ' . $error->getFile() . ':' . $error->getLine());
141142
$this->debug($error->getTraceAsString());
142143
$code = $error->getCode();
143144
$error = $error->getMessage();

0 commit comments

Comments
 (0)