add handle for RfcComplianceException
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2024-02-21 19:12:05 +01:00
parent 0c342094b6
commit 3b643ccd64
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -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);
}