{"action":"closed","issue":{"url":"https://api.github.com/repos/joyent/node/issues/7804","labels_url":"https://api.github.com/repos/joyent/node/issues/7804/labels{/name}","comments_url":"https://api.github.com/repos/joyent/node/issues/7804/comments","events_url":"https://api.github.com/repos/joyent/node/issues/7804/events","html_url":"https://github.com/joyent/node/issues/7804","id":36041523,"number":7804,"title":"Make it easier to debug unhandled stream errors in pipes","user":{"login":"binarykitchen","id":177641,"avatar_url":"https://avatars.githubusercontent.com/u/177641?v=3","gravatar_id":"","url":"https://api.github.com/users/binarykitchen","html_url":"https://github.com/binarykitchen","followers_url":"https://api.github.com/users/binarykitchen/followers","following_url":"https://api.github.com/users/binarykitchen/following{/other_user}","gists_url":"https://api.github.com/users/binarykitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/binarykitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarykitchen/subscriptions","organizations_url":"https://api.github.com/users/binarykitchen/orgs","repos_url":"https://api.github.com/users/binarykitchen/repos","events_url":"https://api.github.com/users/binarykitchen/events{/privacy}","received_events_url":"https://api.github.com/users/binarykitchen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joyent/node/labels/feature-request","name":"feature-request","color":"0b02e1"},{"url":"https://api.github.com/repos/joyent/node/labels/streams","name":"streams","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2014-06-19T00:57:19Z","updated_at":"2015-06-24T17:31:47Z","closed_at":"2015-06-24T17:31:46Z","body":"We all fear the infamous EPIPE and ECONNRESET errors like these:\r\n\r\n```\r\nError: write EPIPE\r\n  at errnoException (net.js:904:11)\r\n  at Object.afterWrite (net.js:720:19)\r\n```\r\n\r\nthrown from https://github.com/joyent/node/blob/v0.10.28/lib/stream.js#L94\r\n\r\nThese are a bitch to debug, see https://gist.github.com/binarykitchen/339305eeadfb1629e57f\r\n\r\nI think it would make our lives sweeter if more information were added to that exception before it's thrown.\r\n\r\nFor example more information about the source and destination. So that it's easier to narrow down the problem."}}