mirror of https://bitbucket.org/ausocean/av.git
cmd/revid-cli: catching error in conversion of mp
This commit is contained in:
parent
4dcbd90449
commit
ea8572a777
|
@ -337,7 +337,10 @@ func run(cfg revid.Config) error {
|
|||
ns.SetMode(paused, &vs)
|
||||
}
|
||||
sleep:
|
||||
sleepTime, _ := strconv.Atoi(ns.Param("mp"))
|
||||
sleepTime, err := strconv.Atoi(ns.Param("mp"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
time.Sleep(time.Duration(sleepTime) * time.Second)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue