*Handle both an error object and a rpc response object with conditional properties
This commit is contained in:
parent
bc34a95ebb
commit
5de486e680
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue