mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
add a note about the error message
This commit is contained in:
@@ -56,7 +56,7 @@ To show a better error message, it is recommended to pass filename with `istream
|
|||||||
|
|
||||||
If there is a syntax error in a toml file, `toml::parse` will throw `toml::syntax_error`.
|
If there is a syntax error in a toml file, `toml::parse` will throw `toml::syntax_error`.
|
||||||
|
|
||||||
toml11 now has clean error messages inspired the Rust compiler and it looks like the following.
|
toml11 now has clean error messages inspired the Rust compiler and it looks like the following (comment after hash sign are actually not shown).
|
||||||
|
|
||||||
```console
|
```console
|
||||||
terminate called after throwing an instance of 'toml::syntax_error'
|
terminate called after throwing an instance of 'toml::syntax_error'
|
||||||
|
|||||||
Reference in New Issue
Block a user