mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
catch and throw proper stripe error message
This commit is contained in:
@@ -86,6 +86,8 @@
|
||||
else {
|
||||
return stripe.card.createToken(card).then(function (response) {
|
||||
return response.id;
|
||||
}).catch(function (err) {
|
||||
throw err.message;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user