From db502aad7fe70f9d907a72840801d6a5b13cd167 Mon Sep 17 00:00:00 2001 From: Vibhaj Rajan Date: Tue, 1 Mar 2016 21:16:13 +0530 Subject: [PATCH 1/2] use error not data as exception message --- lib/Local.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Local.js b/lib/Local.js index 4ede801..d5a42d7 100644 --- a/lib/Local.js +++ b/lib/Local.js @@ -60,7 +60,7 @@ function Local(){ } } - if(error) throw new LocalError(data); + if(error) throw new LocalError(error); callback(); }); }; From d47655ba11061ab9550cb8ef8558b84396d8f8e1 Mon Sep 17 00:00:00 2001 From: Vibhaj Rajan Date: Tue, 1 Mar 2016 21:20:08 +0530 Subject: [PATCH 2/2] wrong no of space :( --- test/local.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/local.js b/test/local.js index 39f9b40..02846fa 100644 --- a/test/local.js +++ b/test/local.js @@ -33,7 +33,7 @@ describe('Local', function () { bsLocal_2.start({ key: process.env.BROWSERSTACK_ACCESS_KEY }, function(){}); } catch(err){ - expect(err.toString().trim()).to.equal('LocalError: *** Error: Either another browserstack local client is running on your machine or some server is listening on port 45691'); + expect(err.toString().trim()).to.equal('LocalError: *** Error: Either another browserstack local client is running on your machine or some server is listening on port 45691'); done(); } });