diff --git a/cmd/lotus-worker/main.go b/cmd/lotus-worker/main.go index d44f618d3..02a96c972 100644 --- a/cmd/lotus-worker/main.go +++ b/cmd/lotus-worker/main.go @@ -98,7 +98,7 @@ func main() { After: func(c *cli.Context) error { if r := recover(); r != nil { - // Generate report in LOTUS_PATH and re-raise panic + // Generate report in LOTUS_PANIC_REPORT_PATH and re-raise panic build.GeneratePanicReport(c.String("panic-reports"), c.String(FlagWorkerRepo), c.App.Name) panic(r) }