From 20afbd65b180b8423cd22b322db54619d78f6c67 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 23 Oct 2015 02:50:35 -0700 Subject: [PATCH] handle promise rejection --- test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test.js b/test.js index 2d6a4a5..96bed44 100644 --- a/test.js +++ b/test.js @@ -66,6 +66,9 @@ $('.js-verify').addEventListener('click', function () { console.info('verify', msg); window.alert(msg); + }, function (err) { + console.error('ERROR'); + console.error(err); }); });