Skip to content

Commit

Permalink
Prevent fromPromise from swallowing errors (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikiyengar committed Oct 27, 2018
1 parent e876265 commit ea104e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Async/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ function fromPromise(fn) {
}

promise
.then(resolve)
.catch(reject)
.then(resolve, reject)
})
}
}
Expand Down

0 comments on commit ea104e0

Please sign in to comment.