Bug 33028: Make exception less generic
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 18 Jul 2023 18:05:50 +0000 (15:05 -0300)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Thu, 17 Aug 2023 16:01:54 +0000 (16:01 +0000)
commitd99dfc6b95bb309f19d704b4d402f09d4c54e575
treeddb5977b37594e458da2f2410e9328ea1b8e70ff
parent51eb255b81694f569be645f4d6a2fd2259f4eb8b
Bug 33028: Make exception less generic

While testing this bug I found Circulation.t was failing, but the
exception doesn't actually display anything useful in terms of helping
debug what's going on.

This patch makes it add the rule_name and rule_value to the message.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 9b7c077c9ddade728a7d84a1cf2f5b62cc4d4841)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f44e411edb51dc9f4afb7df18eb4509fed9d5a31)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Koha/CirculationRules.pm
Koha/Exceptions/CirculationRule.pm [new file with mode: 0644]