add try catch to plugin loading
This commit is contained in:
parent
2bcde666d8
commit
b3f5f46e74
|
@ -66,7 +66,12 @@ class PluginManager extends Module {
|
|||
const directories = await FileUtils.readDir(this.pluginsPath);
|
||||
|
||||
for (let dir of directories) {
|
||||
await this.loadPlugin(dir);
|
||||
try {
|
||||
await this.loadPlugin(dir);
|
||||
} catch (err) {
|
||||
//We don't want every plugin to fail loading when one does
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
|
||||
return this.plugins;
|
||||
|
|
Loading…
Reference in New Issue