Skip to content

Commit

Permalink
retain stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
clintropolis committed Dec 14, 2023
1 parent 8548506 commit de98a3e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ public ExprEval eval(ObjectBinding bindings)
// ExpressionValidationException already contain function name
throw DruidException.forPersona(DruidException.Persona.USER)
.ofCategory(DruidException.Category.INVALID_INPUT)
.build(e.getMessage());
.build(e, e.getMessage());
}
catch (Types.InvalidCastException | Types.InvalidCastBooleanException e) {
throw DruidException.forPersona(DruidException.Persona.USER)
.ofCategory(DruidException.Category.INVALID_INPUT)
.build("Function[%s] encountered exception: %s", name, e.getMessage());
.build(e, "Function[%s] encountered exception: %s", name, e.getMessage());
}
catch (DruidException e) {
throw e;
Expand Down

0 comments on commit de98a3e

Please sign in to comment.