소스 검색

up error handling

k.niemeskern 2 년 전
부모
커밋
274d599658
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      index.js

+ 3 - 0
index.js

@@ -37,6 +37,9 @@ async function watchLinkedin(){
                     // cleanUp error
                     info.error = 0
                 }
+            }).catch( (err)=> {
+                console.log(err);
+                throw new error
             })
         } catch (error) {
             console.log("[DEBUG-LOG][watchLinkedin ERROR]", err);