Skip to content

Commit 5d233f4

Browse files
authored
fix call fmt.Errorf with wrong error
1 parent f616581 commit 5d233f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/yaegi/extract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func genLicense(fname string) (string, error) {
121121
}
122122
license.WriteString("//" + txt + "\n")
123123
}
124-
if sc.Err() != nil {
124+
if err := sc.Err(); err != nil {
125125
return "", fmt.Errorf("could not scan LICENSE file: %w", err)
126126
}
127127

0 commit comments

Comments
 (0)