Commit 9765ec6
committed
🌱 (chore): fix improper usage of
This fixes a misuse of `errors.As` where a non-pointer was passed as the second argument.
Go requires the second argument to be a pointer to an interface or a type implementing the `error` interface.
The test helper now correctly uses `&errType` to ensure proper error assertion and avoid false negatives or runtime issues.errors.As in scaffold tests1 parent 6acdbd2 commit 9765ec6
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| |||
0 commit comments