{"action":"created","issue":{"url":"https://api.github.com/repos/char0n/ramda-adjunct/issues/380","repository_url":"https://api.github.com/repos/char0n/ramda-adjunct","labels_url":"https://api.github.com/repos/char0n/ramda-adjunct/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/char0n/ramda-adjunct/issues/380/comments","events_url":"https://api.github.com/repos/char0n/ramda-adjunct/issues/380/events","html_url":"https://github.com/char0n/ramda-adjunct/issues/380","id":298205700,"number":380,"title":"throwError","user":{"login":"Undistraction","id":161489,"avatar_url":"https://avatars2.githubusercontent.com/u/161489?v=4","gravatar_id":"","url":"https://api.github.com/users/Undistraction","html_url":"https://github.com/Undistraction","followers_url":"https://api.github.com/users/Undistraction/followers","following_url":"https://api.github.com/users/Undistraction/following{/other_user}","gists_url":"https://api.github.com/users/Undistraction/gists{/gist_id}","starred_url":"https://api.github.com/users/Undistraction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Undistraction/subscriptions","organizations_url":"https://api.github.com/users/Undistraction/orgs","repos_url":"https://api.github.com/users/Undistraction/repos","events_url":"https://api.github.com/users/Undistraction/events{/privacy}","received_events_url":"https://api.github.com/users/Undistraction/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-19T09:19:02Z","updated_at":"2018-02-19T09:31:30Z","closed_at":null,"author_association":"COLLABORATOR","body":"I know this is a contentious one, but I think a `throwError` would be a good addition. I fully realise that we should be using the functional approach to avoid the need for throwing, but in many cases, throwing is a necessary part of the API we expose - I'm working on a thin API for use with Styled Components.  If the consumer supplies invalid input I need to throw and tell them what the problem is so they can amend the input. It makes no sense here to recover or continue. In this instance I would prefer to a use a well tested `throwError` function from this lib than have to bake my own. \r\n\r\n```\r\nconst throwError = error => {\r\n  throw error;\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/char0n/ramda-adjunct/issues/comments/366633318","html_url":"https://github.com/char0n/ramda-adjunct/issues/380#issuecomment-366633318","issue_url":"https://api.github.com/repos/char0n/ramda-adjunct/issues/380","id":366633318,"user":{"login":"guillaumearm","id":16897658,"avatar_url":"https://avatars2.githubusercontent.com/u/16897658?v=4","gravatar_id":"","url":"https://api.github.com/users/guillaumearm","html_url":"https://github.com/guillaumearm","followers_url":"https://api.github.com/users/guillaumearm/followers","following_url":"https://api.github.com/users/guillaumearm/following{/other_user}","gists_url":"https://api.github.com/users/guillaumearm/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaumearm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaumearm/subscriptions","organizations_url":"https://api.github.com/users/guillaumearm/orgs","repos_url":"https://api.github.com/users/guillaumearm/repos","events_url":"https://api.github.com/users/guillaumearm/events{/privacy}","received_events_url":"https://api.github.com/users/guillaumearm/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T09:31:30Z","updated_at":"2018-02-19T09:31:30Z","author_association":"COLLABORATOR","body":"I never ask myself, is an error throw is pure ?"}}
{"actor":{"display_login":"guillaumearm"}}