k.niemeskern hace 2 años
padre
commit
d0c8f98e58
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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);