diff --git a/multirun/process.go b/multirun/process.go index 2f1a366..2bb3d9d 100644 --- a/multirun/process.go +++ b/multirun/process.go @@ -64,9 +64,9 @@ func (p *process) run(ctx context.Context) error { select { case <-ctx.Done(): // process should be terminated earlier if err := cmd.Process.Signal(syscall.SIGTERM); err != nil { - _, _ = fmt.Fprintf(p.stderrSink, "[multirun:%s] Failed to send SIGTERM, sending SIGKILL\n", p.tag) + _, _ = fmt.Fprintf(p.stderrSink, "[multirun:%s] Failed to send SIGTERM %s, sending SIGKILL\n", p.tag, err.Error()) if err = cmd.Process.Kill(); err != nil { - _, _ = fmt.Fprintf(p.stderrSink, "[multirun:%s] Failed to send SIGKILL\n", p.tag) + _, _ = fmt.Fprintf(p.stderrSink, "[multirun:%s] Failed to send SIGKILL %s\n", p.tag, err.Error()) } } case <-done: