Commit 3b02540
Fix format string bug in error creation
Use errors.New() instead of fmt.Errorf() when creating error from localized message to avoid treating the message as a format string.
Co-authored-by: jakebailey <[email protected]>1 parent d8a16fb commit 3b02540
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
670 | 671 | | |
671 | 672 | | |
672 | 673 | | |
673 | | - | |
| 674 | + | |
674 | 675 | | |
675 | 676 | | |
676 | 677 | | |
| |||
0 commit comments