Parcourir la source

Catch errors in example.

painor il y a 3 ans
Parent
commit
afecdb787b
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      examples/simpleLogin.js

+ 5 - 1
examples/simpleLogin.js

@@ -76,4 +76,8 @@ client
       "%c you can save it to login with it next time",
       "color:#B54128"
     );
-  });
+  }).catch((e)=>{
+    console.log("AN ERROR HAS HAPPENED");
+    console.log(e.toString());
+
+});