core: log failure errors on Robot Start()

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-05-31 20:41:37 +02:00
parent 4162b1b402
commit c2de8b20de
1 changed files with 2 additions and 0 deletions

View File

@ -153,10 +153,12 @@ func (r *Robot) Start(args ...interface{}) (err error) {
log.Println("Starting Robot", r.Name, "...")
if cerr := r.Connections().Start(); cerr != nil {
err = multierror.Append(err, cerr)
log.Println(err)
return
}
if derr := r.Devices().Start(); derr != nil {
err = multierror.Append(err, derr)
log.Println(err)
return
}
if r.Work == nil {