Skip to content

Commit bf32b89

Browse files
fix: appease linter, handle trackCommandGoroutine error
1 parent 13889bf commit bf32b89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

agent/agentscripts/agentscripts.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func (r *Runner) run(ctx context.Context, script codersdk.WorkspaceAgentScript,
338338
return
339339
}
340340

341-
r.trackCommandGoroutine(func() {
341+
err = r.trackCommandGoroutine(func() {
342342
var stage proto.Timing_Stage
343343
switch option {
344344
case ExecuteStartScripts:
@@ -367,6 +367,9 @@ func (r *Runner) run(ctx context.Context, script codersdk.WorkspaceAgentScript,
367367
logger.Error(ctx, fmt.Sprintf("reporting script completed: %s", err.Error()))
368368
}
369369
})
370+
if err != nil {
371+
logger.Error(ctx, fmt.Sprintf("reporting script completed: track command goroutine: %s", err.Error()))
372+
}
370373
}()
371374

372375
err = cmd.Start()

0 commit comments

Comments
 (0)