mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
Preserve empty location for empty files
Without a region, error messages in exceptions are unable to print a filename. By retaining the location in a zero-length region and detecting this when formatting the exception text it is possible to print the filename and explicitly state that the file is completely empty. Fixes #160
This commit is contained in:
@@ -1943,6 +1943,8 @@ I appreciate the help of the contributors who introduced the great feature to th
|
||||
- Add missing include files
|
||||
- sneakypete81 (@sneakypete81)
|
||||
- Fix typo in error message
|
||||
- Oliver Kahrmann (@founderio)
|
||||
- Fix missing filename in error message if parsed file is empty
|
||||
|
||||
|
||||
## Licensing terms
|
||||
|
||||
Reference in New Issue
Block a user