mirror of https://bitbucket.org/ausocean/av.git
revid: capturing any errors from r.lexTo
This commit is contained in:
parent
0c2ccf55fa
commit
6a0c9941ea
|
@ -473,7 +473,10 @@ func (r *Revid) startRaspivid() error {
|
||||||
r.inputReader = stdout
|
r.inputReader = stdout
|
||||||
|
|
||||||
r.config.Logger.Log(smartlogger.Info, pkg+"reading camera data")
|
r.config.Logger.Log(smartlogger.Info, pkg+"reading camera data")
|
||||||
r.lexTo(r.encoder, r.inputReader, delay)
|
err = r.lexTo(r.encoder, r.inputReader, delay)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
r.config.Logger.Log(smartlogger.Info, pkg+"not trying to read from camera anymore")
|
r.config.Logger.Log(smartlogger.Info, pkg+"not trying to read from camera anymore")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue