diff --git a/common/content/commands.js b/common/content/commands.js index 86d2e670..9f90d21d 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -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); } } diff --git a/common/modules/io.jsm b/common/modules/io.jsm index 57d5f8be..9727d66f 100644 --- a/common/modules/io.jsm +++ b/common/modules/io.jsm @@ -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,