diff --git a/pkg/services/rpcsrv/server.go b/pkg/services/rpcsrv/server.go index f4acc64aa..83a192a01 100644 --- a/pkg/services/rpcsrv/server.go +++ b/pkg/services/rpcsrv/server.go @@ -2436,7 +2436,7 @@ func (s *Server) subscribe(reqParams params.Params, sub *subscriber) (interface{ } } if err != nil { - return nil, neorpc.ErrInvalidParams + return nil, neorpc.WrapErrorWithData(neorpc.ErrInvalidParams, err.Error()) } }