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())