mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-27 13:48:56 +08:00
core: log failure errors on Robot Start()
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
4162b1b402
commit
c2de8b20de
2
robot.go
2
robot.go
@ -153,10 +153,12 @@ func (r *Robot) Start(args ...interface{}) (err error) {
|
|||||||
log.Println("Starting Robot", r.Name, "...")
|
log.Println("Starting Robot", r.Name, "...")
|
||||||
if cerr := r.Connections().Start(); cerr != nil {
|
if cerr := r.Connections().Start(); cerr != nil {
|
||||||
err = multierror.Append(err, cerr)
|
err = multierror.Append(err, cerr)
|
||||||
|
log.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if derr := r.Devices().Start(); derr != nil {
|
if derr := r.Devices().Start(); derr != nil {
|
||||||
err = multierror.Append(err, derr)
|
err = multierror.Append(err, derr)
|
||||||
|
log.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if r.Work == nil {
|
if r.Work == nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user