Skip to content

Commit f9e9726

Browse files
ldezAntonboom
andauthored
Apply suggestions from code review
Co-authored-by: Anton Telyshev <[email protected]>
1 parent 7e1a0f1 commit f9e9726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/golinters/goanalysis/runner_action.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (act *action) analyzeSafe() {
102102
// Some linters are dependent of sub-analyzers but when a sub-analyzer fails the linter is not aware of that,
103103
// this results to another panic (ex: "interface conversion: interface {} is nil, not *buildssa.SSA").
104104
// This line will create a duplication of the panic message on purpose.
105-
act.r.log.Errorf("panic during analysis: %v, %s", p, string(debug.Stack()))
105+
act.r.log.Errorf("%s: panic during analysis: %v, %s", act.a.Name, p, string(debug.Stack()))
106106

107107
act.err = errorutil.NewPanicError(fmt.Sprintf("%s: package %q (isInitialPkg: %t, needAnalyzeSource: %t): %s",
108108
act.a.Name, act.pkg.Name, act.isInitialPkg, act.needAnalyzeSource, p), debug.Stack())

0 commit comments

Comments
 (0)