mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: handler warn log
This commit is contained in:
parent
b9b6b2dc29
commit
3a780ea347
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user