diff options
author | Kris Maglione <maglione.k@gmail.com> | 2010-10-09 16:48:11 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2010-10-09 16:48:11 -0400 |
commit | 4151fe4064bf02d1797645e55c45cec9dd34bbc1 (patch) | |
tree | 051bee59171aeee1bf9b5baa6e4b8e214bdeb6b0 /common/content/io.js | |
parent | 0d3c9bd613f2789ce041ff5195c5beb7bd5ad2eb (diff) | |
parent | fdddfb31ef7dd6f1aa7520312e7a9e7d3f8120cb (diff) | |
download | pentadactyl-4151fe4064bf02d1797645e55c45cec9dd34bbc1.tar.gz |
Merge default.
--HG--
branch : mode-refactoring
Diffstat (limited to 'common/content/io.js')
-rw-r--r-- | common/content/io.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/common/content/io.js b/common/content/io.js index efab3aa7..305023ed 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -67,7 +67,6 @@ const IO = Module("io", { services.get("downloadManager").addListener(this.downloadListener); }, - // TODO: there seems to be no way, short of a new component, to change // the process's CWD - see https://bugzilla.mozilla.org/show_bug.cgi?id=280953 /** @@ -392,9 +391,11 @@ lookup: dactyl.execute(line, { setFrom: file }); } catch (e) { - dactyl.echoerr("Error detected while processing " + file.path); - dactyl.echomsg("line\t" + this.sourcing.line + ":"); - dactyl.reportError(e, true); + if (!silent) { + dactyl.echoerr("Error detected while processing " + file.path); + dactyl.echomsg("line\t" + this.sourcing.line + ":"); + dactyl.reportError(e, true); + } } } } @@ -407,7 +408,8 @@ lookup: dactyl.log("Sourced: " + filename, 3); } catch (e) { - dactyl.reportError(e); + if (!(e instanceof FailedAssertion)) + dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message); |