k.niemeskern 2 anos atrás
pai
commit
d0c8f98e58
1 arquivos alterados com 1 adições e 2 exclusões
  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);