1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Updates for rotessa

This commit is contained in:
David Bomba 2024-09-26 12:04:01 +10:00
parent f5226d342f
commit ce181b976a

View File

@ -111,7 +111,7 @@ class PaymentMethod implements MethodInterface, LivewireMethodInterface
$message = json_decode($e->getMessage(), true);
return redirect()->route('client.payment_methods.index')->withErrors(array_values($message['errors']));
return redirect()->route('client.payment_methods.index')->withErrors(array_values($message['errors'] ?? [$e->getMessage()]));
}