{"action":"created","issue":{"url":"https://api.github.com/repos/genome/genome/issues/1032","labels_url":"https://api.github.com/repos/genome/genome/issues/1032/labels{/name}","comments_url":"https://api.github.com/repos/genome/genome/issues/1032/comments","events_url":"https://api.github.com/repos/genome/genome/issues/1032/events","html_url":"https://github.com/genome/genome/pull/1032","id":109576467,"number":1032,"title":"Adds sanity checks to header and required cols","user":{"login":"chrisamiller","id":48136,"avatar_url":"https://avatars.githubusercontent.com/u/48136?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisamiller","html_url":"https://github.com/chrisamiller","followers_url":"https://api.github.com/users/chrisamiller/followers","following_url":"https://api.github.com/users/chrisamiller/following{/other_user}","gists_url":"https://api.github.com/users/chrisamiller/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisamiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisamiller/subscriptions","organizations_url":"https://api.github.com/users/chrisamiller/orgs","repos_url":"https://api.github.com/users/chrisamiller/repos","events_url":"https://api.github.com/users/chrisamiller/events{/privacy}","received_events_url":"https://api.github.com/users/chrisamiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-02T21:37:42Z","updated_at":"2015-10-05T14:02:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/genome/genome/pulls/1032","html_url":"https://github.com/genome/genome/pull/1032","diff_url":"https://github.com/genome/genome/pull/1032.diff","patch_url":"https://github.com/genome/genome/pull/1032.patch"},"body":null},"comment":{"url":"https://api.github.com/repos/genome/genome/issues/comments/145536845","html_url":"https://github.com/genome/genome/pull/1032#issuecomment-145536845","issue_url":"https://api.github.com/repos/genome/genome/issues/1032","id":145536845,"user":{"login":"ernfrid","id":397990,"avatar_url":"https://avatars.githubusercontent.com/u/397990?v=3","gravatar_id":"","url":"https://api.github.com/users/ernfrid","html_url":"https://github.com/ernfrid","followers_url":"https://api.github.com/users/ernfrid/followers","following_url":"https://api.github.com/users/ernfrid/following{/other_user}","gists_url":"https://api.github.com/users/ernfrid/gists{/gist_id}","starred_url":"https://api.github.com/users/ernfrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernfrid/subscriptions","organizations_url":"https://api.github.com/users/ernfrid/orgs","repos_url":"https://api.github.com/users/ernfrid/repos","events_url":"https://api.github.com/users/ernfrid/events{/privacy}","received_events_url":"https://api.github.com/users/ernfrid/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T14:02:38Z","updated_at":"2015-10-05T14:02:38Z","body":"Might be somewhat cleaner to create a method which checks for the appropriately named header and then throws the error immediately. This would give a more specific error message and potentially simplify the main body there.\r\n\r\nMight also be better to use die(\"\") instead of \r\n\r\n```\r\n$self->error_message(\"$your_error_msg\"); \r\nreturn(undef);\r\n````\r\n\r\nBut I defer to someone in APIPE. Error handling is all over the board in the current code base and I don't know what current best practice is."}}