Merge pull request #37543 from Snorch/do_not_lose_error_message
Don not lose an error message from d.StartWithError in d.Start
This commit is contained in:
commit
73d73ba962
1 changed files with 3 additions and 3 deletions
|
@ -200,7 +200,7 @@ func (d *Daemon) Start(t testingT, args ...string) {
|
|||
ht.Helper()
|
||||
}
|
||||
if err := d.StartWithError(args...); err != nil {
|
||||
t.Fatalf("Error starting daemon with arguments: %v", args)
|
||||
t.Fatalf("Error starting daemon with arguments %v : %v", args, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -324,8 +324,8 @@ func (d *Daemon) StartWithLogFile(out *os.File, providedArgs ...string) error {
|
|||
return errors.Errorf("[%s] error querying daemon for root directory: %v", d.id, err)
|
||||
}
|
||||
return nil
|
||||
case <-d.Wait:
|
||||
return errors.Errorf("[%s] Daemon exited during startup", d.id)
|
||||
case err := <-d.Wait:
|
||||
return errors.Errorf("[%s] Daemon exited during startup: %v", d.id, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue