Skip to content

Commit

Permalink
Code polish
Browse files Browse the repository at this point in the history
  • Loading branch information
woutse committed Oct 26, 2024
1 parent 59c3408 commit 4ec2750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/Checkout/Redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 4ec2750

Please sign in to comment.