Skip to content

Commit

Permalink
Merge pull request #46 from johannessteu/patch-1
Browse files Browse the repository at this point in the history
Output verbose exception msg on separate line
  • Loading branch information
daniellienert authored Mar 6, 2020
2 parents c6efb27 + 67343bd commit e65861e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Command/JobCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ public function workCommand($queue, $exitAfter = null, $limit = null, $verbose =
$numberOfJobExecutions ++;
$this->outputLine('<error>%s</error>', [$exception->getMessage()]);
if ($verbose && $exception->getPrevious() instanceof \Exception) {
$this->outputLine(' Reason: %s', [$exception->getPrevious()->getMessage()]);
$this->outputLine('Reason:');
$this->outputLine($exception->getPrevious()->getMessage());
}
} catch (\Exception $exception) {
$this->outputLine('<error>Unexpected exception during job execution: %s, aborting...</error>', [$exception->getMessage()]);
Expand Down

0 comments on commit e65861e

Please sign in to comment.