Skip to content

Commit

Permalink
Merge pull request #32617 from vespa-engine/revert-32572-arnej/no-sta…
Browse files Browse the repository at this point in the history
…ck-trace-on-unsupported-operation

Revert "unsupported operation should give a nice error"
  • Loading branch information
Harald Musum authored Oct 20, 2024
2 parents 6b0503c + 9fa8a9d commit 185b001
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,6 @@ private Result search(String request, Query query, Chain<Searcher> searchChain)
+ Exceptions.toMessageString(e));
log.log(Level.FINE, error::getDetailedMessage);
return new Result(query, error);
} catch (UnsupportedOperationException e) {
ErrorMessage error = ErrorMessage.createBadRequest("Unsupported operation in [" + request + "]: "
+ Exceptions.toMessageString(e));
log.log(Level.FINE, error::getDetailedMessage);
return new Result(query, error);
} catch (Exception e) {
log(request, query, e);
return new Result(query, ErrorMessage.createUnspecifiedError("Failed: " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ protected void renderErrors(Set<ErrorMessage> errors) throws IOException {
}

protected boolean shouldRenderStacktraceOf(Throwable cause) {
return ! (cause instanceof IllegalArgumentException ||
cause instanceof UnsupportedOperationException);
return ! (cause instanceof IllegalArgumentException);
}

protected void renderCoverage() throws IOException {
Expand Down

0 comments on commit 185b001

Please sign in to comment.