handle promise rejection

This commit is contained in:
AJ ONeal 2015-10-23 02:50:35 -07:00
parent 06d72cc430
commit 20afbd65b1
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ $('.js-verify').addEventListener('click', function () {
console.info('verify', msg); console.info('verify', msg);
window.alert(msg); window.alert(msg);
}, function (err) {
console.error('ERROR');
console.error(err);
}); });
}); });