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(); }); }; 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(); } });