Browse Source

up error handling

k.niemeskern 2 năm trước cách đây
mục cha
commit
274d599658
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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);