]> git.koha-community.org Git - koha.git/commit
Bug 21022: Use passed message if present
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 29 Jun 2018 14:02:57 +0000 (11:02 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 13 Jul 2018 13:25:15 +0000 (13:25 +0000)
commit07c6699a7bd4204d002f135bfeddf33fcc831b54
tree8a5edf8aa9a9d60553b5980b6b482819fa8bf491
parent3dd378fa18230f7a428a309b53e465205b2a235e
Bug 21022: Use passed message if present

This patch makes 'full_message' use the passed exception message instead
of trying to build it from the parameters. This is particularly useful
for some situations in which we don't have all the information but would
like to keep using the same exception.

To test:
- Apply this patchset
- Run:
  $ kshell
 k$ prove t/Koha/Exceptions.t
=> SUCCESS: Tests pass!
- Sign off

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Exceptions/Exception.pm