diff --git a/cli.js b/cli.js index 7d44fbf..c7762e7 100755 --- a/cli.js +++ b/cli.js @@ -37,3 +37,7 @@ process.stdin .pipe(ndj.parse()) .pipe(csv(args)) .pipe(process.stdout) + .on('error', err => { + if (err.code === 'EPIPE') return + throw err + })