Skip to content
Snippets Groups Projects
Commit b1ff40c2 authored by Nicolas.Rod's avatar Nicolas.Rod
Browse files

fix(ElasticsearchService): log bad request error details

parent 14ade47b
No related branches found
No related tags found
1 merge request!346fix(ElasticsearchService): log bad request error details
......@@ -548,6 +548,7 @@ public abstract class ElasticsearchService<T extends IndexMetadata> extends Inde
throw new SolidifyRuntimeException("Error when searching index " + indexName + " with request " + q, e);
} catch (ElasticsearchStatusException e) {
if (RestStatus.BAD_REQUEST.equals(e.status())) {
log.error("Bad search request", e);
throw new SolidifyValidationException(new ValidationError(IndexConstants.BAD_SEARCH_REQUEST));
} else {
throw e;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment