{"action":"closed","issue":{"url":"https://api.github.com/repos/jedcn/hipchat-hotline/issues/4","labels_url":"https://api.github.com/repos/jedcn/hipchat-hotline/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jedcn/hipchat-hotline/issues/4/comments","events_url":"https://api.github.com/repos/jedcn/hipchat-hotline/issues/4/events","html_url":"https://github.com/jedcn/hipchat-hotline/issues/4","id":59226566,"number":4,"title":"Ensure exit codes are 0/1 for success/error","user":{"login":"jedcn","id":28528,"avatar_url":"https://avatars.githubusercontent.com/u/28528?v=3","gravatar_id":"","url":"https://api.github.com/users/jedcn","html_url":"https://github.com/jedcn","followers_url":"https://api.github.com/users/jedcn/followers","following_url":"https://api.github.com/users/jedcn/following{/other_user}","gists_url":"https://api.github.com/users/jedcn/gists{/gist_id}","starred_url":"https://api.github.com/users/jedcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedcn/subscriptions","organizations_url":"https://api.github.com/users/jedcn/orgs","repos_url":"https://api.github.com/users/jedcn/repos","events_url":"https://api.github.com/users/jedcn/events{/privacy}","received_events_url":"https://api.github.com/users/jedcn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-27T11:51:24Z","updated_at":"2015-03-03T12:19:23Z","closed_at":"2015-03-03T12:19:23Z","body":"If you try to use hipchat-hotline and it encounters an error, then the exit code should be non-zero.\r\n\r\n```\r\n❯ hipchat-hotline @UserDoesNotExist Hi\r\nProblem: Error: Target user @UserDoesNotExist is not a valid user\r\n~ ❯ echo $?\r\n0\r\n```\r\n\r\nThat `0` should be a `1` to indicate that an error occured.\r\n\r\nThis helps with script/jenkins/whatever integration."}}