Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore EPIPE errors on write. #11

Closed
mbostock opened this issue Sep 9, 2016 · 0 comments
Closed

Ignore EPIPE errors on write. #11

mbostock opened this issue Sep 9, 2016 · 0 comments

Comments

@mbostock
Copy link
Owner

mbostock commented Sep 9, 2016

For example:

$ shp2json -n example.shp | ndjson-filter true | head -n2
{"type":"Feature","properties":{"FID":0},"geometry":{"type":"Point","coordinates":[1,2]}}
{"type":"Feature","properties":{"FID":1},"geometry":{"type":"Point","coordinates":[3,4]}}
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at exports._errnoException (util.js:1012:11)
    at WriteWrap.afterWrite (net.js:793:14)

If stdout throws an EPIPE exception we should just swallow it silently and abort.

Related mbostock/shapefile#26.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant