mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Throw exception if email job fails
This commit is contained in:
parent
176f8374af
commit
d091ea0e0f
@ -119,8 +119,11 @@ class Mailer
|
||||
$error = trans('texts.postmark_error', ['link' => link_to('https://status.postmarkapp.com/')]);
|
||||
Utils::logError($error);
|
||||
|
||||
// TODO throw the exception once all emails are sent using the queue
|
||||
return $error;
|
||||
if (config('queue.default') === 'sync') {
|
||||
return $error;
|
||||
} else {
|
||||
throw $exception;
|
||||
}
|
||||
}
|
||||
|
||||
$response = $response->getBody()->getContents();
|
||||
|
Loading…
x
Reference in New Issue
Block a user