]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sun, 15 Jul 2018 20:43:07 +0000 (21:43 +0100)
commit220a9adea9891c62cb3fcff33bc08bbc1cd2e89f
tree393f815a1fb6e2687c64da0285765e157428edef
parent7130267d64dd230efd78afba1a831514276a82c6
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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Exceptions/Exception.pm