From c177c1dd738441c116804d226157a6665963b5b7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 1 Feb 2023 12:27:03 -0500 Subject: [PATCH] *Have _callModule wrapper return the entire tuple --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index be976f6..9bb693e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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; }