diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index f37144a2..1c2b9c90 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -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) } }