Skip to content

Commit

Permalink
Merge pull request #527 from matrix-org/rav/fix_interactive_auth_erro…
Browse files Browse the repository at this point in the history
…r_handling

Fix error handling in interactive-auth
  • Loading branch information
dbkr authored Aug 21, 2017
2 parents 2d82a7b + eccea74 commit f7fee29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/interactive-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ InteractiveAuth.prototype = {
},
);
if (!background) {
prom = prom.catch(this._completionDeferred.reject);
prom = prom.catch((e) => {
this._completionDeferred.reject(e);
});
} else {
// We ignore all failures here (even non-UI auth related ones)
// since we don't want to suddenly fail if the internet connection
Expand Down

0 comments on commit f7fee29

Please sign in to comment.