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