From 6795391ba4a72e58adc8b1c82e43dab7b339f559 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 Signed-off-by: Fridolin Somers --- .../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.39.5