소스 검색

Catch errors in example.

painor 3 년 전
부모
커밋
afecdb787b
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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());
+
+});