Commit 37c7b766 authored by Adam Cozzette's avatar Adam Cozzette Committed by GitHub

Merge pull request #2930 from anuraaga/dev_rag

Fix error message for int64 parse failure.
parents cc3fa2ec 58373fa1
...@@ -84,6 +84,8 @@ src/**/*.trs ...@@ -84,6 +84,8 @@ src/**/*.trs
java/core/target java/core/target
java/util/target java/util/target
javanano/target javanano/target
java/.idea
java/**/*.iml
# Windows native output. # Windows native output.
cmake/build cmake/build
......
...@@ -1536,7 +1536,7 @@ public class JsonFormat { ...@@ -1536,7 +1536,7 @@ public class JsonFormat {
BigDecimal value = new BigDecimal(json.getAsString()); BigDecimal value = new BigDecimal(json.getAsString());
return value.longValueExact(); return value.longValueExact();
} catch (Exception e) { } catch (Exception e) {
throw new InvalidProtocolBufferException("Not an int32 value: " + json); throw new InvalidProtocolBufferException("Not an int64 value: " + json);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment