forked from Galactic/galactic-bot
tweak
This commit is contained in:
parent
e9eb948d19
commit
0040846639
@ -33,7 +33,7 @@ class Registry {
|
||||
for(const path of files) {
|
||||
const func = require(path);
|
||||
if(typeof func !== 'function') {
|
||||
this.logger.warn("Attempted to index an invalid function as a component.");
|
||||
this.logger.warn(`Attempted to index an invalid function as a component: ${path}`);
|
||||
delete require.cache[path];
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user