{"action":"created","issue":{"url":"https://api.github.com/repos/hughsk/from2/issues/8","labels_url":"https://api.github.com/repos/hughsk/from2/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/hughsk/from2/issues/8/comments","events_url":"https://api.github.com/repos/hughsk/from2/issues/8/events","html_url":"https://github.com/hughsk/from2/issues/8","id":95226276,"number":8,"title":"If an instance of an Error object is returned in the data then emit that object as an error","user":{"login":"ryanramage","id":795834,"avatar_url":"https://avatars.githubusercontent.com/u/795834?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanramage","html_url":"https://github.com/ryanramage","followers_url":"https://api.github.com/users/ryanramage/followers","following_url":"https://api.github.com/users/ryanramage/following{/other_user}","gists_url":"https://api.github.com/users/ryanramage/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanramage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanramage/subscriptions","organizations_url":"https://api.github.com/users/ryanramage/orgs","repos_url":"https://api.github.com/users/ryanramage/repos","events_url":"https://api.github.com/users/ryanramage/events{/privacy}","received_events_url":"https://api.github.com/users/ryanramage/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-15T15:43:22Z","updated_at":"2015-07-15T16:39:18Z","closed_at":"2015-07-15T16:39:18Z","body":"stream errors are tricky. I always forget to test for them. from2 would be super handy if it could emit error if an Error object is introduced in the array. For example\r\n\r\n```\r\nfrom2.obj([\r\n  {a: 1},\r\n  new Error('oooops'),\r\n  {a: 2}\r\n]).on('error', console.log)\r\n .pipe(ndjson.parse())\r\n```\r\n\r\nI can take a crack at this, as I believe I would just add a contains instance of Error in the check function\r\nhttps://github.com/hughsk/from2/blob/master/index.js#L57\r\n\r\n@mafintosh does this sound reasonable?"},"comment":{"url":"https://api.github.com/repos/hughsk/from2/issues/comments/121672755","html_url":"https://github.com/hughsk/from2/issues/8#issuecomment-121672755","issue_url":"https://api.github.com/repos/hughsk/from2/issues/8","id":121672755,"user":{"login":"ryanramage","id":795834,"avatar_url":"https://avatars.githubusercontent.com/u/795834?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanramage","html_url":"https://github.com/ryanramage","followers_url":"https://api.github.com/users/ryanramage/followers","following_url":"https://api.github.com/users/ryanramage/following{/other_user}","gists_url":"https://api.github.com/users/ryanramage/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanramage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanramage/subscriptions","organizations_url":"https://api.github.com/users/ryanramage/orgs","repos_url":"https://api.github.com/users/ryanramage/repos","events_url":"https://api.github.com/users/ryanramage/events{/privacy}","received_events_url":"https://api.github.com/users/ryanramage/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T16:39:18Z","updated_at":"2015-07-15T16:39:18Z","body":"Fixed and Released as 2.1.0. "}}