*Handle both an error object and a rpc response object with conditional properties

This commit is contained in:
Derrick Hammer 2022-12-04 07:19:00 -05:00
parent bc34a95ebb
commit 5de486e680
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

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