Explorar el Código

Catch errors in example.

painor hace 3 años
padre
commit
afecdb787b
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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());
+
+});