Add console warning when plugin fails to load

This commit is contained in:
Bill Thornton 2020-12-02 15:43:31 -05:00
parent 4727859e46
commit e676a3a236

View File

@ -136,13 +136,9 @@ function loadPlugins() {
list = list.concat(window.NativeShell.getPlugins());
}
Promise.all(list.map((plugin) => {
return pluginManager.loadPlugin(plugin);
}))
.then(function () {
console.debug('finished loading plugins');
})
.catch(() => console.debug('failed loading plugins'))
Promise.all(list.map(plugin => pluginManager.loadPlugin(plugin)))
.then(() => console.debug('finished loading plugins'))
.catch(e => console.warn('failed loading plugins', e))
.finally(() => {
console.groupEnd('loading installed plugins');
packageManager.init();