diff --git a/common/modules/base.jsm b/common/modules/base.jsm index bd4bd6b2..de1bc6e3 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -167,7 +167,7 @@ defineModule.dump = function dump_() { msg = util.objectToString(msg); return msg; }).join(", "); - let name = loaded.services && loaded.config ? config.name.name : "dactyl"; + let name = loaded.config ? config.name : "dactyl"; dump(String.replace(msg, /\n?$/, "\n") .replace(/^./gm, name + ": $&")); } diff --git a/common/modules/config.jsm b/common/modules/config.jsm index 0eaafa3b..f2a632ca 100644 --- a/common/modules/config.jsm +++ b/common/modules/config.jsm @@ -481,6 +481,8 @@ config.INIT = update(Object.create(config.INIT), config.INIT, { } }); +endModule(); + } catch(e){ if (isString(e)) e = Error(e); dump(e.fileName+":"+e.lineNumber+": "+e+"\n" + e.stack); } // vim: set fdm=marker sw=4 ts=4 et: