aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/contentscript.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r--app/scripts/contentscript.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index 1b0de3375..105f24988 100644
--- a/app/scripts/contentscript.js
+++ b/app/scripts/contentscript.js
@@ -19,4 +19,8 @@ var pluginStream = new PortStream(pluginPort)
// forward communication across
pageStream.pipe(pluginStream)
-pluginStream.pipe(pageStream) \ No newline at end of file
+pluginStream.pipe(pageStream)
+
+// log errors
+pageStream.on('error', console.error.bind(console))
+pluginStream.on('error', console.error.bind(console)) \ No newline at end of file