]> git.koha-community.org Git - koha.git/commit
Bug 26312: (follow-up) Fix passing of exception messages
authorNick Clemens <nick@bywatersolutions.com>
Thu, 1 Apr 2021 13:49:19 +0000 (13:49 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 19 Apr 2021 13:14:46 +0000 (15:14 +0200)
commit74284f4ddb015de6e6e7a0c97dd6be40d0804f40
treedf7d11884e1bc6e2ba98fb6c90ac7e9f4bff683e
parentd78690a0ab4d38ef3ad430b6ed9bd02b393834b2
Bug 26312: (follow-up) Fix passing of exception messages

'error' has special meaning in exceptions so naming the fields:
type, details

Rather than only dealing with a single exception type, we generically
get the ES exception info and pass it up.

I could not recreate timeout still, however, I simply restarted the
ES docker during commit stage to cause NoNodes exceptions

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit cc8787bf879630f1c5572008c3637598f56d7aff)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Exceptions/Elasticsearch.pm
Koha/SearchEngine/Elasticsearch/Indexer.pm
misc/search_tools/rebuild_elasticsearch.pl