]> git.koha-community.org Git - koha.git/commit
Bug 33028: Make exception less generic
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 18 Jul 2023 18:05:50 +0000 (15:05 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 8 Aug 2023 06:05:46 +0000 (20:05 -1000)
commitf44e411edb51dc9f4afb7df18eb4509fed9d5a31
tree11e99f511109d8e0aba318d0cfb35490bf01dffe
parentf1032a2fcb7f6ab389eee8b1bbe5cc2f430c132a
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>
Koha/CirculationRules.pm
Koha/Exceptions/CirculationRule.pm [new file with mode: 0644]