Fixes for null exception in failed method

This commit is contained in:
David Bomba 2023-01-30 11:12:28 +11:00
parent e750f45750
commit 5c16821fb9

View File

@ -244,10 +244,10 @@ class WebhookSingle implements ShouldQueue
return $this->company->clients()->first();
}
public function failed($exception)
public function failed($exception = null)
{
nlog(print_r($exception->getMessage(), 1));
if($exception)
nlog($exception->getMessage());
}
}