Explorar el Código

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

CYJiang hace 2 meses
padre
commit
d25efe3954
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      cmd/cmd.go

+ 1 - 0
cmd/cmd.go

@@ -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
 }