Commit 4f7cae2
committed
fix: correct format verb errors in error messages and logging output
Fixes multiple format string bugs found by auditing Go format verbs:
- %ws typo in remove.go: %ws is not a valid Go verb; produces stray 's' in output
- %w used in output.Errorf/Fatalf/Debugf: %w is only supported in fmt.Errorf;
using it in fmt.Sprintf-based logging functions produces garbled %!w(...) output
Affected files:
pkg/cmd/remove/remove.go (%ws -> %w, %w -> %s)
pkg/cmd/unpack/cmd.go (%w -> %v)
pkg/cmd/info/cmd.go (%w -> %v)
pkg/lib/filesystem/cache/cache.go (%w -> %s)
pkg/lib/harness/llm-harness.go (%w -> %v)
Verification: go vet, go build, go test all pass.
Signed-off-by: Adesh Deshmukh <adeshkd123@gmail.com>1 parent 85bf690 commit 4f7cae2
5 files changed
Lines changed: 6 additions & 6 deletions
File tree
- pkg
- cmd
- info
- remove
- unpack
- lib
- filesystem/cache
- harness
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
0 commit comments