From f4ccdc7aa52fc716ac8ef9f1722928f3176c12a0 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 27 Oct 2017 09:30:17 +0200 Subject: [PATCH] Bug 17214: (QA follow-up) Print error message too in fallback case Content-Type: text/plain; charset=utf-8 If the error code is not known or empty, provide the message too. Signed-off-by: Marcel de Rooy Tested this by adding a die on shelves.pl line 180 (my $added = eval ..) --- koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index a81214f..ed45298 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -423,7 +423,7 @@ function AdjustRemark() { [% CASE 'DBIx::Class::Exception' %] [% m.msg %] [% CASE %] - [% m.code %] + [% m.code %] [% m.msg %] [% END %] [% END %] -- 2.1.4