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
fix(config): combine key error context into one (#16004)
### What does this PR try to resolve?
This is a cleanup of annoying multiple "failed to parse key".
```
Caused by:
failed to parse key `alias`
Caused by:
failed to parse key `nested`
```
to
```
Caused by:
failed to parse config at path `alias.nested`
```
This also open a door to using annotate-snippets to get the span of a
key path.
### How to test and review this PR?
This controversial part is we are using the invalid syntax to represent
the key path.
For example, `alias.nested[2]` refers to
```toml
[alias]
nested = ["a", "b", "c"]
# ^^^ this one
```
r? Muscraft
0 commit comments