From cd6770313bfa1164f6037ce15c37450807c39d27 Mon Sep 17 00:00:00 2001 From: asoseil Date: Fri, 15 Dec 2017 15:39:24 +0100 Subject: [PATCH] tool name fixed --- realize/tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/realize/tools.go b/realize/tools.go index 89b974e..35e71df 100644 --- a/realize/tools.go +++ b/realize/tools.go @@ -156,13 +156,13 @@ func (t *Tool) Compile(path string, stop <-chan bool) (response Response) { cmd.Start() go func() { done <- cmd.Wait() }() // Wait a result + response.Name = t.name select { case <-stop: // Stop running command cmd.Process.Kill() case err := <-done: // Command completed - response.Name = t.name if err != nil { response.Err = errors.New(stderr.String() + err.Error()) }