Skip to content

Commit

Permalink
Merge pull request #21 from dverraes/patch-1
Browse files Browse the repository at this point in the history
Array to string conversion exception when updating  `job_statuses`
  • Loading branch information
imTigger authored Jun 22, 2018
2 parents c8d57d6 + 8f067a3 commit 8d0dc85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelJobStatusServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function boot()
'status' => $entityClass::STATUS_FAILED,
'attempts' => $event->job->attempts(),
'finished_at' => Carbon::now(),
'output' => ['message' => $event->exception->getMessage()]
'output' => json_encode(['message' => $event->exception->getMessage()])
]);
});
}
Expand Down

0 comments on commit 8d0dc85

Please sign in to comment.