Skip to content

Commit c529ff7

Browse files
committed
Merge pull request #3 from browserstack/travis
use error not data as exception message
2 parents 3d24beb + d47655b commit c529ff7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Local.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function Local(){
6060
}
6161
}
6262

63-
if(error) throw new LocalError(data);
63+
if(error) throw new LocalError(error);
6464
callback();
6565
});
6666
};

test/local.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('Local', function () {
3333
bsLocal_2.start({ key: process.env.BROWSERSTACK_ACCESS_KEY }, function(){});
3434
}
3535
catch(err){
36-
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');
36+
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');
3737
done();
3838
}
3939
});

0 commit comments

Comments
 (0)