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