mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:47:58 +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")
|
||||
if (!silent) {
|
||||
e.message = context.file + ":" + context.line + ": " + e.message;
|
||||
else {
|
||||
dactyl.echoerr("Error detected while processing " + context.file);
|
||||
dactyl.echomsg("line\t" + context.line + ":");
|
||||
}
|
||||
dactyl.reportError(e, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ var IO = Module("io", {
|
||||
styles.registerSheet(uri.spec, false, true);
|
||||
else {
|
||||
context = Contexts.Context(file, params.group);
|
||||
modules.commands.execute(file.read(), null, params.silent || "loud",
|
||||
modules.commands.execute(file.read(), null, params.silent,
|
||||
null, {
|
||||
context: context,
|
||||
file: file.path,
|
||||
|
||||
Reference in New Issue
Block a user