Skip to content

Commit

Permalink
LNK-1524: fix validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
arianamihailescu committed Feb 1, 2024
1 parent 0d33d20 commit 8e02522
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public T deserialize(JsonParser jsonParser, DeserializationContext deserializati
String jsonContent = jsonParser.readValueAsTree().toString();
return (T) this.jsonParser.parseResource(jsonContent);
} catch (Exception e) {
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, e.getMessage());
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, e.getMessage(), e);
}
}
}

0 comments on commit 8e02522

Please sign in to comment.