fast-csv
fast-csv copied to clipboard
[BUG] if file doesnt exist, the whole node process exits
Describe the bug If file doesnt exist, the whole node process exits
To Reproduce https://github.com/C2FO/fast-csv/blob/master/examples/parsing/pipe.example.js
Expected behavior i should be able to try/catch or .on("error",(e)=>
fixed - I was missing the .on('error', e=> handler. My bad.
(I had previously tried .on('error', e=> but I had it after the .pipe which doesn't work. It has to go before.