{"action":"opened","number":60,"pull_request":{"url":"https://api.github.com/repos/zhaozg/lua-openssl/pulls/60","id":31013698,"html_url":"https://github.com/zhaozg/lua-openssl/pull/60","diff_url":"https://github.com/zhaozg/lua-openssl/pull/60.diff","patch_url":"https://github.com/zhaozg/lua-openssl/pull/60.patch","issue_url":"https://api.github.com/repos/zhaozg/lua-openssl/issues/60","number":60,"state":"open","locked":false,"title":"Add. `last_error` function that returns error separated by part.","user":{"login":"moteus","id":1804306,"avatar_url":"https://avatars.githubusercontent.com/u/1804306?v=3","gravatar_id":"","url":"https://api.github.com/users/moteus","html_url":"https://github.com/moteus","followers_url":"https://api.github.com/users/moteus/followers","following_url":"https://api.github.com/users/moteus/following{/other_user}","gists_url":"https://api.github.com/users/moteus/gists{/gist_id}","starred_url":"https://api.github.com/users/moteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moteus/subscriptions","organizations_url":"https://api.github.com/users/moteus/orgs","repos_url":"https://api.github.com/users/moteus/repos","events_url":"https://api.github.com/users/moteus/events{/privacy}","received_events_url":"https://api.github.com/users/moteus/received_events","type":"User","site_admin":false},"body":"Also this function does not clear error queue by default.\r\nFor now I have no strong opinion but I think there should be way to\r\nget all errors. Because of current `error` function already have boolean argument to print\r\nerror to stderr I think it not very usable to adds one more optional boolen argument to it.\r\n\r\n```Lua\r\n-- print all errors\r\nwhile true do\r\n  local no, reason = ssl.last_error()\r\n  if not no then break end\r\n  print(reason)\r\nend\r\n-- Get only last error and clear error queue\r\nlocal err, msg = ssl.last_error(true)\r\n```\r\n","created_at":"2015-03-12T07:34:43Z","updated_at":"2015-03-12T07:34:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zhaozg/lua-openssl/pulls/60/commits","review_comments_url":"https://api.github.com/repos/zhaozg/lua-openssl/pulls/60/comments","review_comment_url":"https://api.github.com/repos/zhaozg/lua-openssl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zhaozg/lua-openssl/issues/60/comments","statuses_url":"https://api.github.com/repos/zhaozg/lua-openssl/statuses/28cef8fee4698bde6853ccacf032bcc813fa1a45","head":{"label":"moteus:last_error","ref":"last_error","sha":"28cef8fee4698bde6853ccacf032bcc813fa1a45","user":{"login":"moteus","id":1804306,"avatar_url":"https://avatars.githubusercontent.com/u/1804306?v=3","gravatar_id":"","url":"https://api.github.com/users/moteus","html_url":"https://github.com/moteus","followers_url":"https://api.github.com/users/moteus/followers","following_url":"https://api.github.com/users/moteus/following{/other_user}","gists_url":"https://api.github.com/users/moteus/gists{/gist_id}","starred_url":"https://api.github.com/users/moteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moteus/subscriptions","organizations_url":"https://api.github.com/users/moteus/orgs","repos_url":"https://api.github.com/users/moteus/repos","events_url":"https://api.github.com/users/moteus/events{/privacy}","received_events_url":"https://api.github.com/users/moteus/received_events","type":"User","site_admin":false},"repo":{"id":30649783,"name":"lua-openssl","full_name":"moteus/lua-openssl","owner":{"login":"moteus","id":1804306,"avatar_url":"https://avatars.githubusercontent.com/u/1804306?v=3","gravatar_id":"","url":"https://api.github.com/users/moteus","html_url":"https://github.com/moteus","followers_url":"https://api.github.com/users/moteus/followers","following_url":"https://api.github.com/users/moteus/following{/other_user}","gists_url":"https://api.github.com/users/moteus/gists{/gist_id}","starred_url":"https://api.github.com/users/moteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moteus/subscriptions","organizations_url":"https://api.github.com/users/moteus/orgs","repos_url":"https://api.github.com/users/moteus/repos","events_url":"https://api.github.com/users/moteus/events{/privacy}","received_events_url":"https://api.github.com/users/moteus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moteus/lua-openssl","description":"Openssl binding for Lua, which have LuaCrypto-compat module...","fork":true,"url":"https://api.github.com/repos/moteus/lua-openssl","forks_url":"https://api.github.com/repos/moteus/lua-openssl/forks","keys_url":"https://api.github.com/repos/moteus/lua-openssl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moteus/lua-openssl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moteus/lua-openssl/teams","hooks_url":"https://api.github.com/repos/moteus/lua-openssl/hooks","issue_events_url":"https://api.github.com/repos/moteus/lua-openssl/issues/events{/number}","events_url":"https://api.github.com/repos/moteus/lua-openssl/events","assignees_url":"https://api.github.com/repos/moteus/lua-openssl/assignees{/user}","branches_url":"https://api.github.com/repos/moteus/lua-openssl/branches{/branch}","tags_url":"https://api.github.com/repos/moteus/lua-openssl/tags","blobs_url":"https://api.github.com/repos/moteus/lua-openssl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moteus/lua-openssl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moteus/lua-openssl/git/refs{/sha}","trees_url":"https://api.github.com/repos/moteus/lua-openssl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moteus/lua-openssl/statuses/{sha}","languages_url":"https://api.github.com/repos/moteus/lua-openssl/languages","stargazers_url":"https://api.github.com/repos/moteus/lua-openssl/stargazers","contributors_url":"https://api.github.com/repos/moteus/lua-openssl/contributors","subscribers_url":"https://api.github.com/repos/moteus/lua-openssl/subscribers","subscription_url":"https://api.github.com/repos/moteus/lua-openssl/subscription","commits_url":"https://api.github.com/repos/moteus/lua-openssl/commits{/sha}","git_commits_url":"https://api.github.com/repos/moteus/lua-openssl/git/commits{/sha}","comments_url":"https://api.github.com/repos/moteus/lua-openssl/comments{/number}","issue_comment_url":"https://api.github.com/repos/moteus/lua-openssl/issues/comments{/number}","contents_url":"https://api.github.com/repos/moteus/lua-openssl/contents/{+path}","compare_url":"https://api.github.com/repos/moteus/lua-openssl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moteus/lua-openssl/merges","archive_url":"https://api.github.com/repos/moteus/lua-openssl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moteus/lua-openssl/downloads","issues_url":"https://api.github.com/repos/moteus/lua-openssl/issues{/number}","pulls_url":"https://api.github.com/repos/moteus/lua-openssl/pulls{/number}","milestones_url":"https://api.github.com/repos/moteus/lua-openssl/milestones{/number}","notifications_url":"https://api.github.com/repos/moteus/lua-openssl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moteus/lua-openssl/labels{/name}","releases_url":"https://api.github.com/repos/moteus/lua-openssl/releases{/id}","created_at":"2015-02-11T13:50:01Z","updated_at":"2015-02-17T10:43:59Z","pushed_at":"2015-03-12T07:25:55Z","git_url":"git://github.com/moteus/lua-openssl.git","ssh_url":"git@github.com:moteus/lua-openssl.git","clone_url":"https://github.com/moteus/lua-openssl.git","svn_url":"https://github.com/moteus/lua-openssl","homepage":"","size":1549,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zhaozg:master","ref":"master","sha":"d774cab30baf1f3610d80316b62f1080944ce358","user":{"login":"zhaozg","id":542599,"avatar_url":"https://avatars.githubusercontent.com/u/542599?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaozg","html_url":"https://github.com/zhaozg","followers_url":"https://api.github.com/users/zhaozg/followers","following_url":"https://api.github.com/users/zhaozg/following{/other_user}","gists_url":"https://api.github.com/users/zhaozg/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaozg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaozg/subscriptions","organizations_url":"https://api.github.com/users/zhaozg/orgs","repos_url":"https://api.github.com/users/zhaozg/repos","events_url":"https://api.github.com/users/zhaozg/events{/privacy}","received_events_url":"https://api.github.com/users/zhaozg/received_events","type":"User","site_admin":false},"repo":{"id":1987363,"name":"lua-openssl","full_name":"zhaozg/lua-openssl","owner":{"login":"zhaozg","id":542599,"avatar_url":"https://avatars.githubusercontent.com/u/542599?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaozg","html_url":"https://github.com/zhaozg","followers_url":"https://api.github.com/users/zhaozg/followers","following_url":"https://api.github.com/users/zhaozg/following{/other_user}","gists_url":"https://api.github.com/users/zhaozg/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaozg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaozg/subscriptions","organizations_url":"https://api.github.com/users/zhaozg/orgs","repos_url":"https://api.github.com/users/zhaozg/repos","events_url":"https://api.github.com/users/zhaozg/events{/privacy}","received_events_url":"https://api.github.com/users/zhaozg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhaozg/lua-openssl","description":"Openssl binding for Lua, which have LuaCrypto-compat module...","fork":false,"url":"https://api.github.com/repos/zhaozg/lua-openssl","forks_url":"https://api.github.com/repos/zhaozg/lua-openssl/forks","keys_url":"https://api.github.com/repos/zhaozg/lua-openssl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhaozg/lua-openssl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhaozg/lua-openssl/teams","hooks_url":"https://api.github.com/repos/zhaozg/lua-openssl/hooks","issue_events_url":"https://api.github.com/repos/zhaozg/lua-openssl/issues/events{/number}","events_url":"https://api.github.com/repos/zhaozg/lua-openssl/events","assignees_url":"https://api.github.com/repos/zhaozg/lua-openssl/assignees{/user}","branches_url":"https://api.github.com/repos/zhaozg/lua-openssl/branches{/branch}","tags_url":"https://api.github.com/repos/zhaozg/lua-openssl/tags","blobs_url":"https://api.github.com/repos/zhaozg/lua-openssl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhaozg/lua-openssl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhaozg/lua-openssl/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhaozg/lua-openssl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhaozg/lua-openssl/statuses/{sha}","languages_url":"https://api.github.com/repos/zhaozg/lua-openssl/languages","stargazers_url":"https://api.github.com/repos/zhaozg/lua-openssl/stargazers","contributors_url":"https://api.github.com/repos/zhaozg/lua-openssl/contributors","subscribers_url":"https://api.github.com/repos/zhaozg/lua-openssl/subscribers","subscription_url":"https://api.github.com/repos/zhaozg/lua-openssl/subscription","commits_url":"https://api.github.com/repos/zhaozg/lua-openssl/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhaozg/lua-openssl/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhaozg/lua-openssl/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhaozg/lua-openssl/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhaozg/lua-openssl/contents/{+path}","compare_url":"https://api.github.com/repos/zhaozg/lua-openssl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhaozg/lua-openssl/merges","archive_url":"https://api.github.com/repos/zhaozg/lua-openssl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhaozg/lua-openssl/downloads","issues_url":"https://api.github.com/repos/zhaozg/lua-openssl/issues{/number}","pulls_url":"https://api.github.com/repos/zhaozg/lua-openssl/pulls{/number}","milestones_url":"https://api.github.com/repos/zhaozg/lua-openssl/milestones{/number}","notifications_url":"https://api.github.com/repos/zhaozg/lua-openssl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhaozg/lua-openssl/labels{/name}","releases_url":"https://api.github.com/repos/zhaozg/lua-openssl/releases{/id}","created_at":"2011-07-02T11:15:48Z","updated_at":"2015-03-12T03:20:49Z","pushed_at":"2015-03-12T03:20:49Z","git_url":"git://github.com/zhaozg/lua-openssl.git","ssh_url":"git@github.com:zhaozg/lua-openssl.git","clone_url":"https://github.com/zhaozg/lua-openssl.git","svn_url":"https://github.com/zhaozg/lua-openssl","homepage":"","size":2724,"stargazers_count":43,"watchers_count":43,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":4,"forks":16,"open_issues":4,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zhaozg/lua-openssl/pulls/60"},"html":{"href":"https://github.com/zhaozg/lua-openssl/pull/60"},"issue":{"href":"https://api.github.com/repos/zhaozg/lua-openssl/issues/60"},"comments":{"href":"https://api.github.com/repos/zhaozg/lua-openssl/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/zhaozg/lua-openssl/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/zhaozg/lua-openssl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zhaozg/lua-openssl/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/zhaozg/lua-openssl/statuses/28cef8fee4698bde6853ccacf032bcc813fa1a45"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":31,"deletions":0,"changed_files":1}}