1
0
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:
Colby Haskell
2023-10-31 15:17:43 -04:00
committed by GitHub
parent cdb29069da
commit 59da644db4
5 changed files with 36 additions and 12 deletions

View File

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