Skip to content

Piping to head causes error #48

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

Open
drewnoakes opened this issue Jun 17, 2014 · 1 comment
Open

Piping to head causes error #48

drewnoakes opened this issue Jun 17, 2014 · 1 comment

Comments

@drewnoakes
Copy link

The following console interaction should explain the issue.

$ curl http://host/file.json | jsonlint | head -4
{
  "some-key": "some-value",
  "array": [
    {

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: write EPIPE
    at errnoException (net.js:904:11)
    at Object.afterWrite (net.js:720:19)

Is there a way to know that the closed output pipe is not an error?

@zaach
Copy link
Owner

zaach commented Aug 12, 2014

What version of node are you running? I don't see an error on 0.10.x.

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

2 participants