Browse Source

up err test

k.niemeskern 2 năm trước cách đây
mục cha
commit
d0c8f98e58
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      index.js

+ 1 - 2
index.js

@@ -38,8 +38,7 @@ async function watchLinkedin(){
                     info.error = 0
                 }
             }).catch( (err)=> {
-                console.log(err);
-                throw new error
+                return new Error(err)
             })
         } catch (error) {
             console.log("[DEBUG-LOG][watchLinkedin ERROR]", err);