*Have _callModule wrapper return the entire tuple
This commit is contained in:
parent
0bc5807c6a
commit
c177c1dd73
|
@ -51,7 +51,8 @@ export abstract class Client extends EventEmitter {
|
||||||
const moduleBag = await this.loadBound(module);
|
const moduleBag = await this.loadBound(module);
|
||||||
this._callModule = async (...args) => {
|
this._callModule = async (...args) => {
|
||||||
const ret = await moduleBag.callModule(...args);
|
const ret = await moduleBag.callModule(...args);
|
||||||
return this.handleErrorOrReturn(ret);
|
this.handleError(ret);
|
||||||
|
return ret;
|
||||||
};
|
};
|
||||||
this._connectModule = moduleBag.connectModule;
|
this._connectModule = moduleBag.connectModule;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue