Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #59 from Unisay/patch-1
Browse files Browse the repository at this point in the history
#58 Fix async exceptions handling
  • Loading branch information
kritzcreek authored Apr 24, 2018
2 parents 59df129 + 8c4cfc3 commit 32e3d85
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Selenium/Builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ exports._newBuilder = function(eb, cb) {

exports._build = function(builder) {
return function(eb, cb) {
try {
return cb(builder.build());
}
catch (e) {
return eb(e);
}
builder.build().then(cb, eb);
};
};

Expand Down

0 comments on commit 32e3d85

Please sign in to comment.