From 3a780ea34752ca2389172bc6f3086d2589665067 Mon Sep 17 00:00:00 2001 From: MARCROCK22 <57925328+MARCROCK22@users.noreply.github.com> Date: Fri, 10 May 2024 14:54:59 -0400 Subject: [PATCH] fix: handler warn log --- src/commands/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/handler.ts b/src/commands/handler.ts index eebe653..9cb4b21 100644 --- a/src/commands/handler.ts +++ b/src/commands/handler.ts @@ -54,7 +54,7 @@ export class CommandHandler extends BaseHandler { commandInstance = this.onCommand(command.file); if (!commandInstance) continue; } catch (e) { - if (e instanceof Error && e.message === 'command.file is not a constructor') { + if (e instanceof Error && e.message.includes('is not a constructor')) { this.logger.warn( `${command.path .split(process.cwd())