Fix error message for int64 parse error.

This commit is contained in:
Anuraag Agrawal 2017-04-03 17:35:42 +09:00
parent 11c902ea2e
commit 58373fa160

View File

@ -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);
}
}