Bugfix for JSON error case.
This commit is contained in:
parent
800e986012
commit
e67ef3d449
2 changed files with 1 additions and 3 deletions
|
@ -80,7 +80,6 @@ JsonInput.Int32FieldMaxFloatValue.JsonOutput
|
|||
JsonInput.Int32FieldMaxFloatValue.ProtobufOutput
|
||||
JsonInput.Int32FieldMinFloatValue.JsonOutput
|
||||
JsonInput.Int32FieldMinFloatValue.ProtobufOutput
|
||||
JsonInput.Int32FieldMinValue.JsonOutput
|
||||
JsonInput.Int32FieldStringValue.JsonOutput
|
||||
JsonInput.Int32FieldStringValue.ProtobufOutput
|
||||
JsonInput.Int32FieldStringValueEscaped.JsonOutput
|
||||
|
@ -125,7 +124,6 @@ JsonInput.OptionalUint64Wrapper.ProtobufOutput
|
|||
JsonInput.OptionalWrapperTypesWithNonDefaultValue.JsonOutput
|
||||
JsonInput.OptionalWrapperTypesWithNonDefaultValue.ProtobufOutput
|
||||
JsonInput.OriginalProtoFieldName.JsonOutput
|
||||
JsonInput.OriginalProtoFieldName.ProtobufOutput
|
||||
JsonInput.PrimitiveRepeatedField.JsonOutput
|
||||
JsonInput.PrimitiveRepeatedField.ProtobufOutput
|
||||
JsonInput.RepeatedBoolWrapper.JsonOutput
|
||||
|
|
|
@ -11624,7 +11624,7 @@ _again:
|
|||
#line 1270 "upb/json/parser.rl"
|
||||
|
||||
if (p != pe) {
|
||||
upb_status_seterrf(&parser->status, "Parse error at '%.*s'\n", p, pe - p);
|
||||
upb_status_seterrf(&parser->status, "Parse error at '%.*s'\n", pe - p, p);
|
||||
upb_env_reporterror(parser->env, &parser->status);
|
||||
} else {
|
||||
capture_suspend(parser, &p);
|
||||
|
|
Loading…
Add table
Reference in a new issue