Bug 17214: (QA follow-up) Print error message too in fallback case

If the error code is not known or empty, provide the message too.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested this by adding a die on shelves.pl line 180 (my $added = eval ..)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Marcel de Rooy 2017-10-27 09:30:17 +02:00 committed by Jonathan Druart
parent 70d72e3d9c
commit 2f2d84316a

View file

@ -423,7 +423,7 @@ function AdjustRemark() {
[% CASE 'DBIx::Class::Exception' %]
[% m.msg %]
[% CASE %]
[% m.code %]
[% m.code %] [% m.msg %]
[% END %]
</div>
[% END %]