Show more details about unhandled exceptions in the CLI

fixes #9646
This commit is contained in:
Johannes Meyer 2015-07-24 15:58:32 +02:00
parent 998610bafa
commit c1a3d205bc
1 changed files with 8 additions and 1 deletions

View File

@ -265,7 +265,14 @@ class Loader
if ($obj && $obj instanceof Command && $obj->showTrace()) { if ($obj && $obj instanceof Command && $obj->showTrace()) {
echo $this->formatTrace($e->getTrace()); echo $this->formatTrace($e->getTrace());
} }
$this->fail($e->getMessage());
$this->fail(sprintf(
'%s in %s:%d with message: %s',
get_class($e),
$e->getFile(),
$e->getLine(),
$e->getMessage()
));
} }
} }