Skip to content

Commit

Permalink
fixing DurationDeserializer DateTimeException message
Browse files Browse the repository at this point in the history
  • Loading branch information
abracadv8 committed Oct 9, 2018
1 parent 91c2704 commit 49c7b6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public Duration deserialize(JsonParser parser, DeserializationContext context) t
BigDecimal value = parser.getDecimalValue();
// If the decimal isn't within the bounds of a duration, bail out
if(value.compareTo(DURATION_MAX) > 0 ||
value.compareTo(DURATION_MIN) < 0) {
value.compareTo(DURATION_MAX) < 0) {
throw new DateTimeException(
"Instant exceeds minimum or maximum instant");
"Instant exceeds minimum or maximum Duration");
}

long seconds = value.longValue();
Expand Down

0 comments on commit 49c7b6e

Please sign in to comment.