From e2878114de1efbe9365a9cfabace7061da019b1d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Apr 2022 16:11:29 +0200 Subject: [PATCH] Bug 27344: Add error detail if something wrong happened --- .../background_jobs/update_elastic_index.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/update_elastic_index.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/update_elastic_index.inc index d35f06fee5..9386cedcb9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/update_elastic_index.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/update_elastic_index.inc @@ -17,6 +17,21 @@ [% END %] [% BLOCK detail %] + [% FOR m IN job.messages %] +
+ [% IF m.type == 'success' %] + + [% ELSIF m.type == 'warning' %] + + [% ELSIF m.type == 'error' %] + + [% END %] + [% SWITCH m.code %] + [% CASE 'index_error' %] + Something went wrong during the indexation process: [% m.error | html %] + [% END %] +
+ [% END %] [% END %] [% BLOCK js %] -- 2.34.1