diff --git a/src/main.js b/src/main.js index 4841b4c..7065a7d 100644 --- a/src/main.js +++ b/src/main.js @@ -75,6 +75,10 @@ if(errorMsg){ loggerTcpdump.error(data); }); + proc.on("error", (err) => { + loggerTcpdump.error(err); + }); + logger.debug("Attaching exit-handler.."); proc.on("exit", (code) => { loggerTcpdump.debug(`tcpdump exited code: ${code}`);