Skip to content

Commit

Permalink
update error message on the valid root-level markers
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 11, 2022
1 parent aa3913e commit 485ea29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loadbj.m
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
case {'S','C','H','i','U','I','u','l','m','L','M','h','d','D','T','F','Z','N'}
[data{jsoncount}, pos] = parse_value(inputstr, pos, [], opt);
otherwise
error_pos('Outer level structure must be an object or an array', inputstr, pos);
error_pos('Root level structure must start with a valid marker "{[SCHiUIulmLMhdDTFZN"', inputstr, pos);
end
if(jsoncount>=maxobjid)
break;
Expand Down

0 comments on commit 485ea29

Please sign in to comment.