Browse Source

up err test

k.niemeskern 2 years ago
parent
commit
d0c8f98e58
1 changed files with 1 additions and 2 deletions
  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);