diff --git a/Listener/SetDeliveryModule.php b/Listener/SetDeliveryModule.php index adb78a5..b6f7733 100755 --- a/Listener/SetDeliveryModule.php +++ b/Listener/SetDeliveryModule.php @@ -114,6 +114,10 @@ public function isModuleSoColissimo(OrderEvent $event) ->setCountryId($customer_name->getCountryId()) ->save(); } + else { + + throw new \ErrorException("No relay chosen for Socolissimo delivery module"); + } } }