Skip to content

Conversation

bim9262
Copy link
Collaborator

@bim9262 bim9262 commented Aug 19, 2025

In the case that the span is (0..0), we don't usually know where the error really occurred. In that case just omit the line number.

Of course the error really could be at the start of the file, but the error unknown field XXX should be easy enough to find and is less misleading than saying the error is on line 1, when it's not really.

Resolves: #2189

This error is tracked upstream:

In the case that the span is (0..0), we don't usually know where the
error really occurred. In that case just omit the line number.

Resolves: greshake#2189

This error is tracked upstream:

* toml: toml-rs/toml#589
* serde: serde-rs/serde#1183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Erronous "Failed to deserialize TOML file at line 1: unknown field sound"
1 participant