]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Apr 2021 09:48:31 +0000 (11:48 +0200)
commitcc8787bf879630f1c5572008c3637598f56d7aff
tree031d6a8cdf4ff8e8367a08f224d49f5ca8cdcba4
parent72e6999db7cbfc077f200930dd28400d1f86831e
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>
Koha/Exceptions/Elasticsearch.pm
Koha/SearchEngine/Elasticsearch/Indexer.pm
misc/search_tools/rebuild_elasticsearch.pl