Bug 766206 - Add missing parameter to catch clause, DONTBUILD because NPOTB
authorJonathan Griffin <jgriffin@mozilla.com>
Tue, 19 Jun 2012 15:29:17 -0700
changeset 99720 1f7af949b2809ea37436462acec391282f5e7983
parent 99719 a84944a6727f448e183f0543694c072238cd1874
child 99721 f212d8c913f5d8321c903528c0f51b59321252a5
push id1729
push userlsblakk@mozilla.com
push dateMon, 16 Jul 2012 20:02:43 +0000
treeherdermozilla-aurora@f4e75e148951 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs766206
milestone16.0a1
Bug 766206 - Add missing parameter to catch clause, DONTBUILD because NPOTB
testing/marionette/components/marionettecomponent.js
--- a/testing/marionette/components/marionettecomponent.js
+++ b/testing/marionette/components/marionettecomponent.js
@@ -72,17 +72,17 @@ MarionetteComponent.prototype = {
         Cu.import('resource:///modules/devtools/dbg-server.jsm');
         DebuggerServer.addActors('chrome://marionette/content/marionette-actors.js');
         // This pref is required for the remote debugger to open a socket,
         // so force it to true.  See bug 761252.
         let original = false;
         try {
           original = Services.prefs.getBoolPref(DEBUGGER_ENABLED_PREF);
         }
-        catch() { }
+        catch(e) { }
         Services.prefs.setBoolPref(DEBUGGER_ENABLED_PREF, true);
         // Always allow remote connections.
         DebuggerServer.initTransport(function () { return true; });
         DebuggerServer.openListener(port, true);
         Services.prefs.setBoolPref(DEBUGGER_ENABLED_PREF, original);
       }
       catch(e) {
         this.logger.error('exception: ' + e.name + ', ' + e.message);