Skip to content

Commit 2732197

Browse files
committed
feat: add a log to avoid regression in the future
1 parent 5740d3b commit 2732197

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/goanalysis/runner_loadingpackage.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ func (lp *loadingPackage) analyze(ctx context.Context, cancel context.CancelFunc
9191
act.Err = werr
9292
}
9393

94+
if len(lp.actions) == 0 {
95+
lp.log.Warnf("no action but there is an error: %v", err)
96+
}
97+
9498
return
9599
}
96100

0 commit comments

Comments
 (0)