Bug 34316: Add_credit should rethrow an exception correctly
Found while running Items.t on top of 33608. Another exception was thrown but not rethrown. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commitfa9750e24d) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit2b1b8884cc) Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> (cherry picked from commitb431cd1d14) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
dd17fd9b10
commit
e7b5b2c4b9
|
|
@ -285,10 +285,8 @@ sub add_credit {
|
|||
Koha::Exceptions::Account::UnrecognisedType->throw(
|
||||
error => 'Type of credit not recognised' );
|
||||
}
|
||||
else {
|
||||
$_->rethrow;
|
||||
}
|
||||
}
|
||||
$_->rethrow;
|
||||
};
|
||||
|
||||
return $line;
|
||||
|
|
|
|||
Loading…
Reference in New Issue