]> git.koha-community.org Git - koha.git/commit
Bug 21134: Correctly throw the exception in Koha::Patron::Modification->approve
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 31 Jul 2018 15:43:54 +0000 (12:43 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Jul 2018 16:01:00 +0000 (13:01 -0300)
commit6e99cfbca7e904b7664163838a334c487c94e462
tree2204e9813bd7d81458e2fc8e72f04f3acf98f5a3
parenta5492ce96bf4cbf93b91014b8b1b0fbb839a5084
Bug 21134: Correctly throw the exception in Koha::Patron::Modification->approve

koha_1       |     # Looks like you planned 20 tests but ran 9.
koha_1       |
koha_1       | #   Failed test 'approve tests'
koha_1       | #   at t/db_dependent/Koha/Patron/Modifications.t line
259.
koha_1       | [Something went wrong]# Looks like your test exited with
255 just after 5.
koha_1       | [21:13:47] t/db_dependent/Koha/Patron/Modifications.t
.....................

"Something went wrong" should never been thrown,
Koha::Patron::Modification->approve raises $@, but it's not defined, it
should raise $_ instead

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Patron/Modification.pm