Unverified Commit d25efe39 authored by CYJiang's avatar CYJiang Committed by GitHub
Browse files

cmd: add default err return for stop (#9458)

parent 36dfb906
...@@ -256,6 +256,7 @@ func StopHandler(cmd *cobra.Command, args []string) error { ...@@ -256,6 +256,7 @@ func StopHandler(cmd *cobra.Command, args []string) error {
if strings.Contains(err.Error(), "not found") { if strings.Contains(err.Error(), "not found") {
return fmt.Errorf("couldn't find model \"%s\" to stop", args[0]) return fmt.Errorf("couldn't find model \"%s\" to stop", args[0])
} }
return err
} }
return nil return nil
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment