Merge pull request #1928 from kazuhitoyokoi/dev-fixmsgcatalog

Fix reference bug in message catalog
This commit is contained in:
Nick O'Leary
2018-10-19 11:02:17 +01:00
committed by GitHub
3 changed files with 21 additions and 25 deletions

View File

@@ -104,7 +104,7 @@ function load() {
try {
plugin = require("./"+plugins[pluginName].module);
} catch(err) {
return reject(new Error(log._("context.error-loading-module", {module:plugins[pluginName].module,message:err.toString()})));
return reject(new Error(log._("context.error-loading-module2", {module:plugins[pluginName].module,message:err.toString()})));
}
} else {
// Assume `module` is an already-required module we can use
@@ -123,7 +123,7 @@ function load() {
}
log.info(log._("context.log-store-init", {name:pluginName, info:"module="+moduleInfo}));
} catch(err) {
return reject(new Error(log._("context.error-loading-module",{module:pluginName,message:err.toString()})));
return reject(new Error(log._("context.error-loading-module2",{module:pluginName,message:err.toString()})));
}
} else {
// Plugin does not specify a 'module'