fix(backups): error message if there is no exception
This commit is contained in:
parent
e5e1bdcd4d
commit
a0db5b342f
1 changed files with 1 additions and 1 deletions
|
|
@ -591,7 +591,7 @@ public function failed(?Throwable $exception): void
|
|||
if ($log) {
|
||||
$log->update([
|
||||
'status' => 'failed',
|
||||
'message' => 'Job failed: '.$exception->getMessage(),
|
||||
'message' => 'Job failed: '.($exception?->getMessage() ?? 'Unknown error'),
|
||||
'size' => 0,
|
||||
'filename' => null,
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue