Don't try to load directories as files
This commit is contained in:
parent
26e822046e
commit
940f701691
|
@ -46,6 +46,7 @@ async function loadPlugins(app, pluginsPath) {
|
|||
|
||||
if (fs.statSync(pluginFilePath).isDirectory()) {
|
||||
await loadFromDirectory(app, pluginFilePath);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Not a JavaScript file.
|
||||
|
|
Loading…
Reference in New Issue