Ver código fonte

Catch errors in example.

painor 3 anos atrás
pai
commit
afecdb787b
1 arquivos alterados com 5 adições e 1 exclusões
  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());
+
+});