Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: zhichao-aws <[email protected]>
  • Loading branch information
zhichao-aws committed Dec 21, 2023
1 parent 43a228f commit 97f92e9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public <T> void run(Map<String, String> parameters, ActionListener<T> listener)
try {
searchRequest = buildSearchRequest(parameters);
} catch (Exception e) {
log.error("Failed to build search request.", e);
listener.onFailure(e);
return;
}
Expand All @@ -108,7 +109,7 @@ public <T> void run(Map<String, String> parameters, ActionListener<T> listener)
}
listener.onResponse((T) contextBuilder.toString());
} else {
listener.onResponse((T) "");
listener.onResponse((T) "Can not get any match from search result.");
}
}, e -> {
log.error("Failed to search index.", e);
Expand Down

0 comments on commit 97f92e9

Please sign in to comment.