1
0
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:
Kris Maglione
2011-02-07 03:02:40 -05:00
parent 5be9f3e85c
commit a8ef60f4d5
2 changed files with 3 additions and 8 deletions

View File

@@ -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);
} }
} }

View File

@@ -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,