mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-09 05:07:05 +10:00
Merge pull request #29 from pwaller/protect-start
Check ps.Start() error
This commit is contained in:
@@ -126,7 +126,12 @@ func (f *Forego) startProcess(idx, procNum int, proc ProcfileEntry, env Env, of
|
||||
|
||||
finished := make(chan struct{}) // closed on process exit
|
||||
|
||||
ps.Start()
|
||||
err = ps.Start()
|
||||
if err != nil {
|
||||
f.teardown.Fall()
|
||||
of.SystemOutput(fmt.Sprint("Failed to start ", procName, ": ", err))
|
||||
return
|
||||
}
|
||||
|
||||
f.wg.Add(1)
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user