start on loadup errors

This commit is contained in:
Zack Rauen 2017-11-03 01:34:04 -04:00
parent fef52720fe
commit 2ca6a2427c
1 changed files with 11 additions and 0 deletions

View File

@ -205,6 +205,15 @@ Core.prototype.init = function () {
themeModule = new ThemeModule();
themeModule.loadThemes();
// Show loading errors
for (let err of bdpluginErrors) {
console.log(err);
}
for (let err of bdthemeErrors) {
console.log(err);
}
settingsPanel = new V2_SettingsPanel();
settingsPanel.updateSettings();
@ -1137,6 +1146,7 @@ PluginModule.prototype.loadPlugins = function () {
catch (err) {
pluginCookie[name] = false;
utils.err("Plugin " + name + " could not be loaded.", err);
bdpluginErrors.push({name: name, file: bdplugins[plugins[i]].filename, reason: "load() could not be fired.", error: {message: err.message, stack: err.stack}});
continue;
}
@ -1147,6 +1157,7 @@ PluginModule.prototype.loadPlugins = function () {
catch (err) {
pluginCookie[name] = false;
utils.err("Plugin " + name + " could not be started.", err);
bdpluginErrors.push({name: name, file: bdplugins[plugins[i]].filename, reason: "start() could not be fired.", error: {message: err.message, stack: err.stack}});
}
}
}