Merge pull request #2930 from anuraaga/dev_rag

Fix error message for int64 parse failure.
pull/2950/head
Adam Cozzette 8 years ago committed by GitHub
commit 37c7b766b3
  1. 2
      .gitignore
  2. 2
      java/util/src/main/java/com/google/protobuf/util/JsonFormat.java

2
.gitignore vendored

@ -84,6 +84,8 @@ src/**/*.trs
java/core/target
java/util/target
javanano/target
java/.idea
java/**/*.iml
# Windows native output.
cmake/build

@ -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