@@ -, +, @@ --- C4/SIP/ILS/Transaction/FeePayment.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/C4/SIP/ILS/Transaction/FeePayment.pm +++ a/C4/SIP/ILS/Transaction/FeePayment.pm @@ -84,9 +84,9 @@ sub pay { $pay_response = $account->pay($pay_options); } catch { - if ( ref($_) eq 'Koha::Exceptions::Account::RegisterRequired' ) { - $ok = 0; - $error = q{SIP account must be associated with a register for 'fee paid' messages to succeed}; + if ( ref($_) =~ /^Koha::Exceptions/ ) { + $ok = 0; + $error = $_->description; } else { $_->rethrow; --