mirror of
https://github.com/nlohmann/json.git
synced 2025-07-29 23:01:16 +03:00
Add more specific error message when attempting to parse empty input (#4180)
This commit is contained in:
@ -139,7 +139,7 @@ This error indicates a syntax error while deserializing a JSON text. The error m
|
||||
No input:
|
||||
|
||||
```
|
||||
[json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
|
||||
[json.exception.parse_error.101] parse error at line 1, column 1: attempting to parse an empty input; check that your input string or stream contains the expected JSON
|
||||
```
|
||||
|
||||
Control character was not escaped:
|
||||
|
Reference in New Issue
Block a user