mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 12:38:00 +01:00
Don't be so damned loud about errors during :sourcing now that we're no longer aping Vim.
--HG-- branch : groups
This commit is contained in:
@@ -672,13 +672,8 @@ var Commands = Module("commands", {
|
||||
dactyl.execute(line, args);
|
||||
}
|
||||
catch (e) {
|
||||
if (!silent || silent === "loud") {
|
||||
if (silent !== "loud")
|
||||
e.message = context.file + ":" + context.line + ": " + e.message;
|
||||
else {
|
||||
dactyl.echoerr("Error detected while processing " + context.file);
|
||||
dactyl.echomsg("line\t" + context.line + ":");
|
||||
}
|
||||
if (!silent) {
|
||||
e.message = context.file + ":" + context.line + ": " + e.message;
|
||||
dactyl.reportError(e, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user