diff --git a/app/Jobs/Util/WebhookSingle.php b/app/Jobs/Util/WebhookSingle.php index 2e80af61ea4b..5ecbad2aad4a 100644 --- a/app/Jobs/Util/WebhookSingle.php +++ b/app/Jobs/Util/WebhookSingle.php @@ -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()); } }