Console warning instead of throw so error reporting isn't triggered
This commit is contained in:
parent
2f786c03a2
commit
1701606593
1 changed files with 4 additions and 2 deletions
|
@ -134,7 +134,8 @@ class Messaging extends Action
|
|||
'deliveryErrors' => ['No valid recipients found.']
|
||||
]));
|
||||
|
||||
throw new \Exception('No valid recipients found.');
|
||||
Console::warning('No valid recipients found.');
|
||||
return;
|
||||
}
|
||||
|
||||
$fallback = $dbForProject->findOne('providers', [
|
||||
|
@ -148,7 +149,8 @@ class Messaging extends Action
|
|||
'deliveryErrors' => ['No fallback provider found.']
|
||||
]));
|
||||
|
||||
throw new \Exception('No fallback provider found.');
|
||||
Console::warning('No fallback provider found.');
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue