mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26: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);
|
commandInstance = this.onCommand(command.file);
|
||||||
if (!commandInstance) continue;
|
if (!commandInstance) continue;
|
||||||
} catch (e) {
|
} 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(
|
this.logger.warn(
|
||||||
`${command.path
|
`${command.path
|
||||||
.split(process.cwd())
|
.split(process.cwd())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user