From 3b643ccd64155ad94ab4a167af855e86f01eb8d6 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 21 Feb 2024 19:12:05 +0100 Subject: [PATCH] add handle for RfcComplianceException --- bin/console | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/console b/bin/console index a9848e9..fe7541d 100755 --- a/bin/console +++ b/bin/console @@ -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); }