diff --git a/dist/query/base.js b/dist/query/base.js index 7585bfb..8f937e1 100644 --- a/dist/query/base.js +++ b/dist/query/base.js @@ -50,7 +50,7 @@ export default class RpcQueryBase { await this._run(); } catch (e) { - this._promiseResolve?.({ error: e.message }); + this._promiseResolve?.({ error: e?.message || e?.error }); } } setupRelayTimeout(reject) {