diff --git a/pkg/visor/rpc.go b/pkg/visor/rpc.go index 0a55339645..c2f51362b3 100644 --- a/pkg/visor/rpc.go +++ b/pkg/visor/rpc.go @@ -190,7 +190,11 @@ func (r *RPC) StartApp(name *string, _ *struct{}) error { // StopApp stops App with provided name. func (r *RPC) StopApp(name *string, _ *struct{}) error { - return r.node.StopApp(*name) + err := r.node.StopApp(*name) + if err == ErrUnknownApp { + err = errors.New("app is either non-existent, or is already stopped") + } + return err } // SetAutoStartIn is input for SetAutoStart.