Log invalid number inputs

// FREEBIE
This commit is contained in:
lilia 2016-01-21 13:59:04 -08:00
parent 40402b8e88
commit 43071d94d6

View file

@ -50,7 +50,7 @@
confirmNumber: function(number) {
var parsed = libphonenumber.parse(number);
if (!libphonenumber.isValidNumber(parsed)) {
throw new Error('Invalid number');
throw new Error('Invalid number ' + number);
}
this.$('#step4 .number').text(libphonenumber.format(
parsed,