Explorar o código

up error handling

k.niemeskern %!s(int64=2) %!d(string=hai) anos
pai
achega
274d599658
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);