tool name fixed
This commit is contained in:
parent
3c502fbdf7
commit
cd6770313b
|
@ -156,13 +156,13 @@ func (t *Tool) Compile(path string, stop <-chan bool) (response Response) {
|
||||||
cmd.Start()
|
cmd.Start()
|
||||||
go func() { done <- cmd.Wait() }()
|
go func() { done <- cmd.Wait() }()
|
||||||
// Wait a result
|
// Wait a result
|
||||||
|
response.Name = t.name
|
||||||
select {
|
select {
|
||||||
case <-stop:
|
case <-stop:
|
||||||
// Stop running command
|
// Stop running command
|
||||||
cmd.Process.Kill()
|
cmd.Process.Kill()
|
||||||
case err := <-done:
|
case err := <-done:
|
||||||
// Command completed
|
// Command completed
|
||||||
response.Name = t.name
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
response.Err = errors.New(stderr.String() + err.Error())
|
response.Err = errors.New(stderr.String() + err.Error())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue