{"action":"created","issue":{"url":"https://api.github.com/repos/stoffern/pokemon-go-api/issues/8","repository_url":"https://api.github.com/repos/stoffern/pokemon-go-api","labels_url":"https://api.github.com/repos/stoffern/pokemon-go-api/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/stoffern/pokemon-go-api/issues/8/comments","events_url":"https://api.github.com/repos/stoffern/pokemon-go-api/issues/8/events","html_url":"https://github.com/stoffern/pokemon-go-api/issues/8","id":166946306,"number":8,"title":"Change reject to throw?","user":{"login":"jimmywarting","id":1148376,"avatar_url":"https://avatars.githubusercontent.com/u/1148376?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmywarting","html_url":"https://github.com/jimmywarting","followers_url":"https://api.github.com/users/jimmywarting/followers","following_url":"https://api.github.com/users/jimmywarting/following{/other_user}","gists_url":"https://api.github.com/users/jimmywarting/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmywarting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmywarting/subscriptions","organizations_url":"https://api.github.com/users/jimmywarting/orgs","repos_url":"https://api.github.com/users/jimmywarting/repos","events_url":"https://api.github.com/users/jimmywarting/events{/privacy}","received_events_url":"https://api.github.com/users/jimmywarting/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T00:22:37Z","updated_at":"2016-07-22T05:20:44Z","closed_at":null,"body":"When you reject stuff without returning the code will run the rest of the code... so i think `throw` is a better option\r\n\r\na instance of Error is also better because you get a better stack trace."},"comment":{"url":"https://api.github.com/repos/stoffern/pokemon-go-api/issues/comments/234456894","html_url":"https://github.com/stoffern/pokemon-go-api/issues/8#issuecomment-234456894","issue_url":"https://api.github.com/repos/stoffern/pokemon-go-api/issues/8","id":234456894,"user":{"login":"stoffern","id":943968,"avatar_url":"https://avatars.githubusercontent.com/u/943968?v=3","gravatar_id":"","url":"https://api.github.com/users/stoffern","html_url":"https://github.com/stoffern","followers_url":"https://api.github.com/users/stoffern/followers","following_url":"https://api.github.com/users/stoffern/following{/other_user}","gists_url":"https://api.github.com/users/stoffern/gists{/gist_id}","starred_url":"https://api.github.com/users/stoffern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoffern/subscriptions","organizations_url":"https://api.github.com/users/stoffern/orgs","repos_url":"https://api.github.com/users/stoffern/repos","events_url":"https://api.github.com/users/stoffern/events{/privacy}","received_events_url":"https://api.github.com/users/stoffern/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T05:20:44Z","updated_at":"2016-07-22T05:20:44Z","body":"@jimmywarting agree :+1: "}}
{"actor":{"display_login":"stoffern"}}