Bug 42391: (QA follow-up): Clarify exception_action ref-passthrough comment
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
9c04c7bbb4
commit
22d988e8b4
|
|
@ -38,7 +38,8 @@ sub connection {
|
||||||
sub {
|
sub {
|
||||||
my ($msg) = @_;
|
my ($msg) = @_;
|
||||||
|
|
||||||
# Don't re-wrap Koha exceptions that DBIC is re-throwing (e.g. from txn_do)
|
# Pass through any pre-thrown exception object (Koha exceptions, DBIx::Class::Exception
|
||||||
|
# re-thrown from txn_do, etc.). Translation only applies to plain error message strings.
|
||||||
die $msg if ref($msg);
|
die $msg if ref($msg);
|
||||||
|
|
||||||
# Attempt translation — throws a Koha exception on match
|
# Attempt translation — throws a Koha exception on match
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue