aboutsummaryrefslogtreecommitdiffhomepage
path: root/java
diff options
context:
space:
mode:
authorGravatar Anuraag Agrawal <anuraaga@gmail.com>2017-04-03 17:35:42 +0900
committerGravatar Anuraag Agrawal <anuraaga@gmail.com>2017-04-03 17:35:42 +0900
commit58373fa160368d825255b0103235b1b769520f14 (patch)
tree4b284a91833f5de4225f5d53c0c81545ec1f0813 /java
parent11c902ea2ef0a481f607693b35b6cc765e9f4caa (diff)
Fix error message for int64 parse error.
Diffstat (limited to 'java')
-rw-r--r--java/util/src/main/java/com/google/protobuf/util/JsonFormat.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java b/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java
index 838700f7..7d6718b8 100644
--- a/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java
+++ b/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);
}
}