From 4ec27500e02546f2a6484c557773968f31193fcf Mon Sep 17 00:00:00 2001 From: woutse Date: Sat, 26 Oct 2024 11:56:17 +0200 Subject: [PATCH] Code polish --- Controller/Checkout/Redirect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/Checkout/Redirect.php b/Controller/Checkout/Redirect.php index 527d4e29..8a842a15 100644 --- a/Controller/Checkout/Redirect.php +++ b/Controller/Checkout/Redirect.php @@ -88,7 +88,7 @@ public function execute() $payment = $order->getPayment(); if (empty($payment)) { - throw new \Exception('No payment found'); + throw new Error('No payment found'); } $methodInstance = $this->paymentHelper->getMethodInstance($payment->getMethod());