Fix error message for int64 parse error.

pull/2930/head
Anuraag Agrawal 8 years ago
parent 11c902ea2e
commit 58373fa160
  1. 2
      java/util/src/main/java/com/google/protobuf/util/JsonFormat.java

@ -1536,7 +1536,7 @@ public class JsonFormat {
BigDecimal value = new BigDecimal(json.getAsString());
return value.longValueExact();
} catch (Exception e) {
throw new InvalidProtocolBufferException("Not an int32 value: " + json);
throw new InvalidProtocolBufferException("Not an int64 value: " + json);
}
}

Loading…
Cancel
Save