rpcsrv: adjust "subscribe" response error

Make it more detailed for better debugging experience.
This commit is contained in:
Anna Shaleva 2022-11-16 12:37:18 +03:00
parent 3f122fd591
commit d043139b66

View file

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