diff --git a/src/query/base.ts b/src/query/base.ts index ad7a67a..1a167d2 100644 --- a/src/query/base.ts +++ b/src/query/base.ts @@ -81,7 +81,7 @@ export default abstract class RpcQueryBase { await this._network.ready; await this._run(); } catch (e: any) { - this._promiseResolve?.({ error: e.message }); + this._promiseResolve?.({ error: e?.message || e?.error }); } }