add handle for RfcComplianceException
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
0c342094b6
commit
3b643ccd64
|
@ -9,6 +9,7 @@ use Plugin\Loader\EnvVarLoader;
|
|||
use Plugin\Pipeline\Evaluation;
|
||||
use Symfony\Component\Mailer\Exception\TransportException;
|
||||
use Twig\Error\SyntaxError;
|
||||
use Symfony\Component\Mime\Exception\RfcComplianceException;
|
||||
|
||||
$build = EnvVarLoader::buildArray([
|
||||
'workspace' => 'CI_WORKSPACE',
|
||||
|
@ -143,6 +144,8 @@ try {
|
|||
handleError('Syntax error', $e);
|
||||
} catch (TransportException $e) {
|
||||
handleError('Transport error', $e);
|
||||
} catch (RfcComplianceException $e) {
|
||||
handleError('RFC compliance error', $e);
|
||||
} catch (\Exception $e) {
|
||||
handleError('Generic error', $e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue