fast-csv icon indicating copy to clipboard operation
fast-csv copied to clipboard

[BUG] if file doesnt exist, the whole node process exits

Open ViableClanMember opened this issue 7 years ago • 2 comments

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)=>

ViableClanMember avatar Sep 28 '19 19:09 ViableClanMember

fixed - I was missing the .on('error', e=> handler. My bad.

ViableClanMember avatar Sep 30 '19 00:09 ViableClanMember

(I had previously tried .on('error', e=> but I had it after the .pipe which doesn't work. It has to go before.

ViableClanMember avatar Sep 30 '19 00:09 ViableClanMember