Commit 6c47612
authored
Add context to get_toml_path() error (#5207)
* rustfmt: print full error chain
* Add context to get_toml_path() error
Instead of an error like:
```
Permission denied (os error 13)
```
Gives error like:
```
Failed to get metadata for config file "/root/.rustfmt.toml": Permission denied (os error 13)
```1 parent 1e78a2b commit 6c47612
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
| |||
0 commit comments