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

This commit is contained in:
CYJiang 2025-03-04 04:13:41 +08:00 committed by GitHub
parent 36dfb906bb
commit d25efe3954
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,6 +256,7 @@ func StopHandler(cmd *cobra.Command, args []string) error {
if strings.Contains(err.Error(), "not found") {
return fmt.Errorf("couldn't find model \"%s\" to stop", args[0])
}
return err
}
return nil
}