Skip to content

Commit e65861e

Browse files
Merge pull request #46 from johannessteu/patch-1
Output verbose exception msg on separate line
2 parents c6efb27 + 67343bd commit e65861e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Classes/Command/JobCommandController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public function workCommand($queue, $exitAfter = null, $limit = null, $verbose =
8888
$numberOfJobExecutions ++;
8989
$this->outputLine('<error>%s</error>', [$exception->getMessage()]);
9090
if ($verbose && $exception->getPrevious() instanceof \Exception) {
91-
$this->outputLine(' Reason: %s', [$exception->getPrevious()->getMessage()]);
91+
$this->outputLine('Reason:');
92+
$this->outputLine($exception->getPrevious()->getMessage());
9293
}
9394
} catch (\Exception $exception) {
9495
$this->outputLine('<error>Unexpected exception during job execution: %s, aborting...</error>', [$exception->getMessage()]);

0 commit comments

Comments
 (0)