You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will result in an error that requires cross comparing with an example or looking at an enum in code to figure out why it didn't work (the doc key shouldn't have its own hyphen in this particular example):
$ tab --check
1 error was detected:
- Failed to deserialize config at path: /home/jdisanti/src/tab.yml - error: data did not match any variant of untagged enum Config
Ideally, this error message would be more along the lines of:
1 error was detected:
- /home/jdisanti/src/tab.yml line 4, col 3: unknown workspace field 'doc'
Thanks for building this!
I found a config parsing error that could be improved, but it looks fairly involved. Using the following config:
Will result in an error that requires cross comparing with an example or looking at an enum in code to figure out why it didn't work (the
doc
key shouldn't have its own hyphen in this particular example):Ideally, this error message would be more along the lines of:
This appears to be a serde bug: serde-rs/serde#773
I think there are two options for improving the error:
The text was updated successfully, but these errors were encountered: