*Have _callModule wrapper return the entire tuple

This commit is contained in:
Derrick Hammer 2023-02-01 12:27:03 -05:00
parent 0bc5807c6a
commit c177c1dd73
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ export abstract class Client extends EventEmitter {
const moduleBag = await this.loadBound(module);
this._callModule = async (...args) => {
const ret = await moduleBag.callModule(...args);
return this.handleErrorOrReturn(ret);
this.handleError(ret);
return ret;
};
this._connectModule = moduleBag.connectModule;
}