Commit 4c6913f
fix: wrap errors returned by JSON unmarshal
Currently `%v` is used inside an `Errorf` call, this means the original errors is lost and cannot be unwrapped to.
By changing it to `%w` the error is preserved and can be retrieved with `errors.As`.1 parent 56d6720 commit 4c6913f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments