{"action":"created","comment":{"url":"https://api.github.com/repos/konstructs/client/pulls/comments/37704877","id":37704877,"diff_hunk":"@@ -64,11 +64,11 @@ void client_send(char *data) {\n     int length = strlen(data);\n     int header_size = htonl(length);\n     if (client_sendall(sd, (char*)&header_size, sizeof(header_size)) == -1) {\n-        perror(\"client_sendall\");\n+        SHOWERROR(\"client_sendall\");\n         exit(1);\n     }\n     if (client_sendall(sd, data, length) == -1) {\n-        perror(\"client_sendall\");\n+\t\tSHOWERROR(\"client_sendall\");","path":"src/client.c","position":10,"original_position":10,"commit_id":"19da5b41b5ec0c358230e7377dac977bf7712039","original_commit_id":"19da5b41b5ec0c358230e7377dac977bf7712039","user":{"login":"nsg","id":16388,"avatar_url":"https://avatars.githubusercontent.com/u/16388?v=3","gravatar_id":"","url":"https://api.github.com/users/nsg","html_url":"https://github.com/nsg","followers_url":"https://api.github.com/users/nsg/followers","following_url":"https://api.github.com/users/nsg/following{/other_user}","gists_url":"https://api.github.com/users/nsg/gists{/gist_id}","starred_url":"https://api.github.com/users/nsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsg/subscriptions","organizations_url":"https://api.github.com/users/nsg/orgs","repos_url":"https://api.github.com/users/nsg/repos","events_url":"https://api.github.com/users/nsg/events{/privacy}","received_events_url":"https://api.github.com/users/nsg/received_events","type":"User","site_admin":false},"body":"Please, change the tabs to spaces. The code will be hard to read with mixed indentation levels.","created_at":"2015-08-23T11:10:47Z","updated_at":"2015-08-23T11:10:47Z","html_url":"https://github.com/konstructs/client/pull/78#discussion_r37704877","pull_request_url":"https://api.github.com/repos/konstructs/client/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/konstructs/client/pulls/comments/37704877"},"html":{"href":"https://github.com/konstructs/client/pull/78#discussion_r37704877"},"pull_request":{"href":"https://api.github.com/repos/konstructs/client/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/konstructs/client/pulls/78","id":43106941,"html_url":"https://github.com/konstructs/client/pull/78","diff_url":"https://github.com/konstructs/client/pull/78.diff","patch_url":"https://github.com/konstructs/client/pull/78.patch","issue_url":"https://api.github.com/repos/konstructs/client/issues/78","number":78,"state":"open","locked":false,"title":"Added advanced error messages","user":{"login":"Henningstone","id":9981005,"avatar_url":"https://avatars.githubusercontent.com/u/9981005?v=3","gravatar_id":"","url":"https://api.github.com/users/Henningstone","html_url":"https://github.com/Henningstone","followers_url":"https://api.github.com/users/Henningstone/followers","following_url":"https://api.github.com/users/Henningstone/following{/other_user}","gists_url":"https://api.github.com/users/Henningstone/gists{/gist_id}","starred_url":"https://api.github.com/users/Henningstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Henningstone/subscriptions","organizations_url":"https://api.github.com/users/Henningstone/orgs","repos_url":"https://api.github.com/users/Henningstone/repos","events_url":"https://api.github.com/users/Henningstone/events{/privacy}","received_events_url":"https://api.github.com/users/Henningstone/received_events","type":"User","site_admin":false},"body":"This should be a bit more helpful than the current error messages...","created_at":"2015-08-22T17:25:32Z","updated_at":"2015-08-23T11:10:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bd259b6940b5cdaf5bd54513c19a7ff5832f630","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/konstructs/client/pulls/78/commits","review_comments_url":"https://api.github.com/repos/konstructs/client/pulls/78/comments","review_comment_url":"https://api.github.com/repos/konstructs/client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/konstructs/client/issues/78/comments","statuses_url":"https://api.github.com/repos/konstructs/client/statuses/19da5b41b5ec0c358230e7377dac977bf7712039","head":{"label":"Henningstone:fix-catch-eintr","ref":"fix-catch-eintr","sha":"19da5b41b5ec0c358230e7377dac977bf7712039","user":{"login":"Henningstone","id":9981005,"avatar_url":"https://avatars.githubusercontent.com/u/9981005?v=3","gravatar_id":"","url":"https://api.github.com/users/Henningstone","html_url":"https://github.com/Henningstone","followers_url":"https://api.github.com/users/Henningstone/followers","following_url":"https://api.github.com/users/Henningstone/following{/other_user}","gists_url":"https://api.github.com/users/Henningstone/gists{/gist_id}","starred_url":"https://api.github.com/users/Henningstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Henningstone/subscriptions","organizations_url":"https://api.github.com/users/Henningstone/orgs","repos_url":"https://api.github.com/users/Henningstone/repos","events_url":"https://api.github.com/users/Henningstone/events{/privacy}","received_events_url":"https://api.github.com/users/Henningstone/received_events","type":"User","site_admin":false},"repo":{"id":41096032,"name":"client","full_name":"Henningstone/client","owner":{"login":"Henningstone","id":9981005,"avatar_url":"https://avatars.githubusercontent.com/u/9981005?v=3","gravatar_id":"","url":"https://api.github.com/users/Henningstone","html_url":"https://github.com/Henningstone","followers_url":"https://api.github.com/users/Henningstone/followers","following_url":"https://api.github.com/users/Henningstone/following{/other_user}","gists_url":"https://api.github.com/users/Henningstone/gists{/gist_id}","starred_url":"https://api.github.com/users/Henningstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Henningstone/subscriptions","organizations_url":"https://api.github.com/users/Henningstone/orgs","repos_url":"https://api.github.com/users/Henningstone/repos","events_url":"https://api.github.com/users/Henningstone/events{/privacy}","received_events_url":"https://api.github.com/users/Henningstone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Henningstone/client","description":"A voxel based game client.","fork":true,"url":"https://api.github.com/repos/Henningstone/client","forks_url":"https://api.github.com/repos/Henningstone/client/forks","keys_url":"https://api.github.com/repos/Henningstone/client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Henningstone/client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Henningstone/client/teams","hooks_url":"https://api.github.com/repos/Henningstone/client/hooks","issue_events_url":"https://api.github.com/repos/Henningstone/client/issues/events{/number}","events_url":"https://api.github.com/repos/Henningstone/client/events","assignees_url":"https://api.github.com/repos/Henningstone/client/assignees{/user}","branches_url":"https://api.github.com/repos/Henningstone/client/branches{/branch}","tags_url":"https://api.github.com/repos/Henningstone/client/tags","blobs_url":"https://api.github.com/repos/Henningstone/client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Henningstone/client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Henningstone/client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Henningstone/client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Henningstone/client/statuses/{sha}","languages_url":"https://api.github.com/repos/Henningstone/client/languages","stargazers_url":"https://api.github.com/repos/Henningstone/client/stargazers","contributors_url":"https://api.github.com/repos/Henningstone/client/contributors","subscribers_url":"https://api.github.com/repos/Henningstone/client/subscribers","subscription_url":"https://api.github.com/repos/Henningstone/client/subscription","commits_url":"https://api.github.com/repos/Henningstone/client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Henningstone/client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Henningstone/client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Henningstone/client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Henningstone/client/contents/{+path}","compare_url":"https://api.github.com/repos/Henningstone/client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Henningstone/client/merges","archive_url":"https://api.github.com/repos/Henningstone/client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Henningstone/client/downloads","issues_url":"https://api.github.com/repos/Henningstone/client/issues{/number}","pulls_url":"https://api.github.com/repos/Henningstone/client/pulls{/number}","milestones_url":"https://api.github.com/repos/Henningstone/client/milestones{/number}","notifications_url":"https://api.github.com/repos/Henningstone/client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Henningstone/client/labels{/name}","releases_url":"https://api.github.com/repos/Henningstone/client/releases{/id}","created_at":"2015-08-20T13:04:59Z","updated_at":"2015-08-20T13:05:00Z","pushed_at":"2015-08-22T21:20:06Z","git_url":"git://github.com/Henningstone/client.git","ssh_url":"git@github.com:Henningstone/client.git","clone_url":"https://github.com/Henningstone/client.git","svn_url":"https://github.com/Henningstone/client","homepage":"http://www.konstructs.org","size":15322,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"konstructs:fix-catch-eintr","ref":"fix-catch-eintr","sha":"66946936cd80a1d9e6052d451169f9425644299e","user":{"login":"konstructs","id":12371489,"avatar_url":"https://avatars.githubusercontent.com/u/12371489?v=3","gravatar_id":"","url":"https://api.github.com/users/konstructs","html_url":"https://github.com/konstructs","followers_url":"https://api.github.com/users/konstructs/followers","following_url":"https://api.github.com/users/konstructs/following{/other_user}","gists_url":"https://api.github.com/users/konstructs/gists{/gist_id}","starred_url":"https://api.github.com/users/konstructs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstructs/subscriptions","organizations_url":"https://api.github.com/users/konstructs/orgs","repos_url":"https://api.github.com/users/konstructs/repos","events_url":"https://api.github.com/users/konstructs/events{/privacy}","received_events_url":"https://api.github.com/users/konstructs/received_events","type":"Organization","site_admin":false},"repo":{"id":27650355,"name":"client","full_name":"konstructs/client","owner":{"login":"konstructs","id":12371489,"avatar_url":"https://avatars.githubusercontent.com/u/12371489?v=3","gravatar_id":"","url":"https://api.github.com/users/konstructs","html_url":"https://github.com/konstructs","followers_url":"https://api.github.com/users/konstructs/followers","following_url":"https://api.github.com/users/konstructs/following{/other_user}","gists_url":"https://api.github.com/users/konstructs/gists{/gist_id}","starred_url":"https://api.github.com/users/konstructs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstructs/subscriptions","organizations_url":"https://api.github.com/users/konstructs/orgs","repos_url":"https://api.github.com/users/konstructs/repos","events_url":"https://api.github.com/users/konstructs/events{/privacy}","received_events_url":"https://api.github.com/users/konstructs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/konstructs/client","description":"A voxel based game client.","fork":true,"url":"https://api.github.com/repos/konstructs/client","forks_url":"https://api.github.com/repos/konstructs/client/forks","keys_url":"https://api.github.com/repos/konstructs/client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/konstructs/client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/konstructs/client/teams","hooks_url":"https://api.github.com/repos/konstructs/client/hooks","issue_events_url":"https://api.github.com/repos/konstructs/client/issues/events{/number}","events_url":"https://api.github.com/repos/konstructs/client/events","assignees_url":"https://api.github.com/repos/konstructs/client/assignees{/user}","branches_url":"https://api.github.com/repos/konstructs/client/branches{/branch}","tags_url":"https://api.github.com/repos/konstructs/client/tags","blobs_url":"https://api.github.com/repos/konstructs/client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/konstructs/client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/konstructs/client/git/refs{/sha}","trees_url":"https://api.github.com/repos/konstructs/client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/konstructs/client/statuses/{sha}","languages_url":"https://api.github.com/repos/konstructs/client/languages","stargazers_url":"https://api.github.com/repos/konstructs/client/stargazers","contributors_url":"https://api.github.com/repos/konstructs/client/contributors","subscribers_url":"https://api.github.com/repos/konstructs/client/subscribers","subscription_url":"https://api.github.com/repos/konstructs/client/subscription","commits_url":"https://api.github.com/repos/konstructs/client/commits{/sha}","git_commits_url":"https://api.github.com/repos/konstructs/client/git/commits{/sha}","comments_url":"https://api.github.com/repos/konstructs/client/comments{/number}","issue_comment_url":"https://api.github.com/repos/konstructs/client/issues/comments{/number}","contents_url":"https://api.github.com/repos/konstructs/client/contents/{+path}","compare_url":"https://api.github.com/repos/konstructs/client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/konstructs/client/merges","archive_url":"https://api.github.com/repos/konstructs/client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/konstructs/client/downloads","issues_url":"https://api.github.com/repos/konstructs/client/issues{/number}","pulls_url":"https://api.github.com/repos/konstructs/client/pulls{/number}","milestones_url":"https://api.github.com/repos/konstructs/client/milestones{/number}","notifications_url":"https://api.github.com/repos/konstructs/client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/konstructs/client/labels{/name}","releases_url":"https://api.github.com/repos/konstructs/client/releases{/id}","created_at":"2014-12-06T21:52:46Z","updated_at":"2015-08-18T04:52:08Z","pushed_at":"2015-08-23T10:47:01Z","git_url":"git://github.com/konstructs/client.git","ssh_url":"git@github.com:konstructs/client.git","clone_url":"https://github.com/konstructs/client.git","svn_url":"https://github.com/konstructs/client","homepage":"http://www.konstructs.org","size":15322,"stargazers_count":21,"watchers_count":21,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/konstructs/client/pulls/78"},"html":{"href":"https://github.com/konstructs/client/pull/78"},"issue":{"href":"https://api.github.com/repos/konstructs/client/issues/78"},"comments":{"href":"https://api.github.com/repos/konstructs/client/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/konstructs/client/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/konstructs/client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/konstructs/client/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/konstructs/client/statuses/19da5b41b5ec0c358230e7377dac977bf7712039"}}}}