{"action":"created","comment":{"url":"https://api.github.com/repos/czechboy0/Socks/pulls/comments/66931099","id":66931099,"diff_hunk":"@@ -70,3 +70,144 @@ public struct Error: ErrorProtocol, CustomStringConvertible {\n         return \"Socket failed with code \\(self.number) [\\(self.type)] \\\"\\(getReason())\\\"\"\n     }\n }\n+\n+public struct ErrorLookUpTabel{\n+    \n+    public static func getCorrespondingErrorString(errorCode: Int) -> String {\n+        // Dictionary indexed from zero\n+        if(errorCode > errorDescriptions.count - 1 || errorCode < 0){\n+            return \"?\"\n+        }\n+        else{","path":"Sources/SocksCore/Error.swift","position":12,"original_position":12,"commit_id":"61e0e6e4735f755f00e1de4033a4a6af208fea71","original_commit_id":"61e0e6e4735f755f00e1de4033a4a6af208fea71","user":{"login":"czechboy0","id":2182121,"avatar_url":"https://avatars.githubusercontent.com/u/2182121?v=3","gravatar_id":"","url":"https://api.github.com/users/czechboy0","html_url":"https://github.com/czechboy0","followers_url":"https://api.github.com/users/czechboy0/followers","following_url":"https://api.github.com/users/czechboy0/following{/other_user}","gists_url":"https://api.github.com/users/czechboy0/gists{/gist_id}","starred_url":"https://api.github.com/users/czechboy0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czechboy0/subscriptions","organizations_url":"https://api.github.com/users/czechboy0/orgs","repos_url":"https://api.github.com/users/czechboy0/repos","events_url":"https://api.github.com/users/czechboy0/events{/privacy}","received_events_url":"https://api.github.com/users/czechboy0/received_events","type":"User","site_admin":false},"body":"nit-pick: please keep the `else` clause on the same line as the closing brace, and add a space before the opening, i.e. `} else {`","created_at":"2016-06-14T08:49:33Z","updated_at":"2016-06-14T08:49:33Z","html_url":"https://github.com/czechboy0/Socks/pull/54#discussion_r66931099","pull_request_url":"https://api.github.com/repos/czechboy0/Socks/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/czechboy0/Socks/pulls/comments/66931099"},"html":{"href":"https://github.com/czechboy0/Socks/pull/54#discussion_r66931099"},"pull_request":{"href":"https://api.github.com/repos/czechboy0/Socks/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/czechboy0/Socks/pulls/54","id":73660106,"html_url":"https://github.com/czechboy0/Socks/pull/54","diff_url":"https://github.com/czechboy0/Socks/pull/54.diff","patch_url":"https://github.com/czechboy0/Socks/pull/54.patch","issue_url":"https://api.github.com/repos/czechboy0/Socks/issues/54","number":54,"state":"open","locked":false,"title":"Implementing a struct called ErrorCodes which serves as a static Dict…","user":{"login":"MatthiasKreileder","id":15800423,"avatar_url":"https://avatars.githubusercontent.com/u/15800423?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthiasKreileder","html_url":"https://github.com/MatthiasKreileder","followers_url":"https://api.github.com/users/MatthiasKreileder/followers","following_url":"https://api.github.com/users/MatthiasKreileder/following{/other_user}","gists_url":"https://api.github.com/users/MatthiasKreileder/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthiasKreileder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthiasKreileder/subscriptions","organizations_url":"https://api.github.com/users/MatthiasKreileder/orgs","repos_url":"https://api.github.com/users/MatthiasKreileder/repos","events_url":"https://api.github.com/users/MatthiasKreileder/events{/privacy}","received_events_url":"https://api.github.com/users/MatthiasKreileder/received_events","type":"User","site_admin":false},"body":"…ionary to look up corresponding error descriptions in string format to the provided error codes (Int values). Also adding tests.","created_at":"2016-06-13T23:38:03Z","updated_at":"2016-06-14T08:49:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"154fa6dea3ce62e76f61a827f2f10d485e900282","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/czechboy0/Socks/pulls/54/commits","review_comments_url":"https://api.github.com/repos/czechboy0/Socks/pulls/54/comments","review_comment_url":"https://api.github.com/repos/czechboy0/Socks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/czechboy0/Socks/issues/54/comments","statuses_url":"https://api.github.com/repos/czechboy0/Socks/statuses/61e0e6e4735f755f00e1de4033a4a6af208fea71","head":{"label":"czechboy0:SocketErrors","ref":"SocketErrors","sha":"61e0e6e4735f755f00e1de4033a4a6af208fea71","user":{"login":"czechboy0","id":2182121,"avatar_url":"https://avatars.githubusercontent.com/u/2182121?v=3","gravatar_id":"","url":"https://api.github.com/users/czechboy0","html_url":"https://github.com/czechboy0","followers_url":"https://api.github.com/users/czechboy0/followers","following_url":"https://api.github.com/users/czechboy0/following{/other_user}","gists_url":"https://api.github.com/users/czechboy0/gists{/gist_id}","starred_url":"https://api.github.com/users/czechboy0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czechboy0/subscriptions","organizations_url":"https://api.github.com/users/czechboy0/orgs","repos_url":"https://api.github.com/users/czechboy0/repos","events_url":"https://api.github.com/users/czechboy0/events{/privacy}","received_events_url":"https://api.github.com/users/czechboy0/received_events","type":"User","site_admin":false},"repo":{"id":51764518,"name":"Socks","full_name":"czechboy0/Socks","owner":{"login":"czechboy0","id":2182121,"avatar_url":"https://avatars.githubusercontent.com/u/2182121?v=3","gravatar_id":"","url":"https://api.github.com/users/czechboy0","html_url":"https://github.com/czechboy0","followers_url":"https://api.github.com/users/czechboy0/followers","following_url":"https://api.github.com/users/czechboy0/following{/other_user}","gists_url":"https://api.github.com/users/czechboy0/gists{/gist_id}","starred_url":"https://api.github.com/users/czechboy0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czechboy0/subscriptions","organizations_url":"https://api.github.com/users/czechboy0/orgs","repos_url":"https://api.github.com/users/czechboy0/repos","events_url":"https://api.github.com/users/czechboy0/events{/privacy}","received_events_url":"https://api.github.com/users/czechboy0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/czechboy0/Socks","description":"Pure-Swift Sockets: TCP, UDP; Client, Server; Linux, OS X. ","fork":false,"url":"https://api.github.com/repos/czechboy0/Socks","forks_url":"https://api.github.com/repos/czechboy0/Socks/forks","keys_url":"https://api.github.com/repos/czechboy0/Socks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/czechboy0/Socks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/czechboy0/Socks/teams","hooks_url":"https://api.github.com/repos/czechboy0/Socks/hooks","issue_events_url":"https://api.github.com/repos/czechboy0/Socks/issues/events{/number}","events_url":"https://api.github.com/repos/czechboy0/Socks/events","assignees_url":"https://api.github.com/repos/czechboy0/Socks/assignees{/user}","branches_url":"https://api.github.com/repos/czechboy0/Socks/branches{/branch}","tags_url":"https://api.github.com/repos/czechboy0/Socks/tags","blobs_url":"https://api.github.com/repos/czechboy0/Socks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/czechboy0/Socks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/czechboy0/Socks/git/refs{/sha}","trees_url":"https://api.github.com/repos/czechboy0/Socks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/czechboy0/Socks/statuses/{sha}","languages_url":"https://api.github.com/repos/czechboy0/Socks/languages","stargazers_url":"https://api.github.com/repos/czechboy0/Socks/stargazers","contributors_url":"https://api.github.com/repos/czechboy0/Socks/contributors","subscribers_url":"https://api.github.com/repos/czechboy0/Socks/subscribers","subscription_url":"https://api.github.com/repos/czechboy0/Socks/subscription","commits_url":"https://api.github.com/repos/czechboy0/Socks/commits{/sha}","git_commits_url":"https://api.github.com/repos/czechboy0/Socks/git/commits{/sha}","comments_url":"https://api.github.com/repos/czechboy0/Socks/comments{/number}","issue_comment_url":"https://api.github.com/repos/czechboy0/Socks/issues/comments{/number}","contents_url":"https://api.github.com/repos/czechboy0/Socks/contents/{+path}","compare_url":"https://api.github.com/repos/czechboy0/Socks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/czechboy0/Socks/merges","archive_url":"https://api.github.com/repos/czechboy0/Socks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/czechboy0/Socks/downloads","issues_url":"https://api.github.com/repos/czechboy0/Socks/issues{/number}","pulls_url":"https://api.github.com/repos/czechboy0/Socks/pulls{/number}","milestones_url":"https://api.github.com/repos/czechboy0/Socks/milestones{/number}","notifications_url":"https://api.github.com/repos/czechboy0/Socks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/czechboy0/Socks/labels{/name}","releases_url":"https://api.github.com/repos/czechboy0/Socks/releases{/id}","deployments_url":"https://api.github.com/repos/czechboy0/Socks/deployments","created_at":"2016-02-15T15:24:32Z","updated_at":"2016-06-14T02:52:05Z","pushed_at":"2016-06-13T23:57:29Z","git_url":"git://github.com/czechboy0/Socks.git","ssh_url":"git@github.com:czechboy0/Socks.git","clone_url":"https://github.com/czechboy0/Socks.git","svn_url":"https://github.com/czechboy0/Socks","homepage":"","size":268,"stargazers_count":264,"watchers_count":264,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":9,"forks":14,"open_issues":9,"watchers":264,"default_branch":"master"}},"base":{"label":"czechboy0:master","ref":"master","sha":"0f555eddbab9167e3f19b8f4212d4f5b97e84880","user":{"login":"czechboy0","id":2182121,"avatar_url":"https://avatars.githubusercontent.com/u/2182121?v=3","gravatar_id":"","url":"https://api.github.com/users/czechboy0","html_url":"https://github.com/czechboy0","followers_url":"https://api.github.com/users/czechboy0/followers","following_url":"https://api.github.com/users/czechboy0/following{/other_user}","gists_url":"https://api.github.com/users/czechboy0/gists{/gist_id}","starred_url":"https://api.github.com/users/czechboy0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czechboy0/subscriptions","organizations_url":"https://api.github.com/users/czechboy0/orgs","repos_url":"https://api.github.com/users/czechboy0/repos","events_url":"https://api.github.com/users/czechboy0/events{/privacy}","received_events_url":"https://api.github.com/users/czechboy0/received_events","type":"User","site_admin":false},"repo":{"id":51764518,"name":"Socks","full_name":"czechboy0/Socks","owner":{"login":"czechboy0","id":2182121,"avatar_url":"https://avatars.githubusercontent.com/u/2182121?v=3","gravatar_id":"","url":"https://api.github.com/users/czechboy0","html_url":"https://github.com/czechboy0","followers_url":"https://api.github.com/users/czechboy0/followers","following_url":"https://api.github.com/users/czechboy0/following{/other_user}","gists_url":"https://api.github.com/users/czechboy0/gists{/gist_id}","starred_url":"https://api.github.com/users/czechboy0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czechboy0/subscriptions","organizations_url":"https://api.github.com/users/czechboy0/orgs","repos_url":"https://api.github.com/users/czechboy0/repos","events_url":"https://api.github.com/users/czechboy0/events{/privacy}","received_events_url":"https://api.github.com/users/czechboy0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/czechboy0/Socks","description":"Pure-Swift Sockets: TCP, UDP; Client, Server; Linux, OS X. ","fork":false,"url":"https://api.github.com/repos/czechboy0/Socks","forks_url":"https://api.github.com/repos/czechboy0/Socks/forks","keys_url":"https://api.github.com/repos/czechboy0/Socks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/czechboy0/Socks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/czechboy0/Socks/teams","hooks_url":"https://api.github.com/repos/czechboy0/Socks/hooks","issue_events_url":"https://api.github.com/repos/czechboy0/Socks/issues/events{/number}","events_url":"https://api.github.com/repos/czechboy0/Socks/events","assignees_url":"https://api.github.com/repos/czechboy0/Socks/assignees{/user}","branches_url":"https://api.github.com/repos/czechboy0/Socks/branches{/branch}","tags_url":"https://api.github.com/repos/czechboy0/Socks/tags","blobs_url":"https://api.github.com/repos/czechboy0/Socks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/czechboy0/Socks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/czechboy0/Socks/git/refs{/sha}","trees_url":"https://api.github.com/repos/czechboy0/Socks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/czechboy0/Socks/statuses/{sha}","languages_url":"https://api.github.com/repos/czechboy0/Socks/languages","stargazers_url":"https://api.github.com/repos/czechboy0/Socks/stargazers","contributors_url":"https://api.github.com/repos/czechboy0/Socks/contributors","subscribers_url":"https://api.github.com/repos/czechboy0/Socks/subscribers","subscription_url":"https://api.github.com/repos/czechboy0/Socks/subscription","commits_url":"https://api.github.com/repos/czechboy0/Socks/commits{/sha}","git_commits_url":"https://api.github.com/repos/czechboy0/Socks/git/commits{/sha}","comments_url":"https://api.github.com/repos/czechboy0/Socks/comments{/number}","issue_comment_url":"https://api.github.com/repos/czechboy0/Socks/issues/comments{/number}","contents_url":"https://api.github.com/repos/czechboy0/Socks/contents/{+path}","compare_url":"https://api.github.com/repos/czechboy0/Socks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/czechboy0/Socks/merges","archive_url":"https://api.github.com/repos/czechboy0/Socks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/czechboy0/Socks/downloads","issues_url":"https://api.github.com/repos/czechboy0/Socks/issues{/number}","pulls_url":"https://api.github.com/repos/czechboy0/Socks/pulls{/number}","milestones_url":"https://api.github.com/repos/czechboy0/Socks/milestones{/number}","notifications_url":"https://api.github.com/repos/czechboy0/Socks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/czechboy0/Socks/labels{/name}","releases_url":"https://api.github.com/repos/czechboy0/Socks/releases{/id}","deployments_url":"https://api.github.com/repos/czechboy0/Socks/deployments","created_at":"2016-02-15T15:24:32Z","updated_at":"2016-06-14T02:52:05Z","pushed_at":"2016-06-13T23:57:29Z","git_url":"git://github.com/czechboy0/Socks.git","ssh_url":"git@github.com:czechboy0/Socks.git","clone_url":"https://github.com/czechboy0/Socks.git","svn_url":"https://github.com/czechboy0/Socks","homepage":"","size":268,"stargazers_count":264,"watchers_count":264,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":9,"forks":14,"open_issues":9,"watchers":264,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/czechboy0/Socks/pulls/54"},"html":{"href":"https://github.com/czechboy0/Socks/pull/54"},"issue":{"href":"https://api.github.com/repos/czechboy0/Socks/issues/54"},"comments":{"href":"https://api.github.com/repos/czechboy0/Socks/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/czechboy0/Socks/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/czechboy0/Socks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/czechboy0/Socks/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/czechboy0/Socks/statuses/61e0e6e4735f755f00e1de4033a4a6af208fea71"}}}}
{"actor":{"display_login":"czechboy0"}}