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

shp2json should ignore EPIPE errors on write. #26

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

shp2json should ignore EPIPE errors on write. #26

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

Comments

@mbostock
Copy link
Owner

mbostock commented Sep 9, 2016

For example:

$ shp2json -n example.shp | 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.

@mbostock mbostock self-assigned this Sep 9, 2016
@mbostock mbostock changed the title shp2json -n should ignore EPIPE exception. shp2json -n should ignore EPIPE errors on write. Sep 9, 2016
@mbostock mbostock changed the title shp2json -n should ignore EPIPE errors on write. shp2json should ignore EPIPE errors on write. Sep 9, 2016
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