Skip to content

Commit

Permalink
fix: report the argument position
Browse files Browse the repository at this point in the history
  • Loading branch information
tmzane committed Oct 27, 2023
1 parent a101578 commit fe32309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion musttag.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func run(pass *analysis.Pass, mainModule string, funcs map[string]Func) (_ any,
return // nothing to report.
}

pass.Reportf(call.Pos(), "the given struct should be annotated with the `%s` tag", fn.Tag)
pass.Reportf(arg.Pos(), "the given struct should be annotated with the `%s` tag", fn.Tag)
})

return nil, err
Expand Down

0 comments on commit fe32309

Please sign in to comment.