tool name fixed

This commit is contained in:
asoseil 2017-12-15 15:39:24 +01:00
parent 3c502fbdf7
commit cd6770313b
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}