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:
Kyle M Hall 2026-05-05 12:08:56 +00:00 committed by Pedro Amorim
parent 9c04c7bbb4
commit 22d988e8b4
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ sub connection {
sub {
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);
# Attempt translation — throws a Koha exception on match