mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 09:34:11 +01:00
Fix prefix in dump output.
This commit is contained in:
@@ -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 + ": $&"));
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user