fixed error with build nil

This commit is contained in:
asoseil 2018-02-07 14:24:47 +01:00
parent 8946c2c610
commit 0cc05cff1f
1 changed files with 3 additions and 1 deletions

View File

@ -547,7 +547,9 @@ func (p *Project) run(path string, stream chan Response, stop <-chan bool) (err
defer func() {
// https://github.com/golang/go/issues/5615
// https://github.com/golang/go/issues/6720
build.Process.Signal(os.Interrupt)
if build != nil {
build.Process.Signal(os.Interrupt)
}
}()
// custom error pattern