{"action":"created","issue":{"url":"https://api.github.com/repos/pmmp/PocketMine-MP/issues/357","repository_url":"https://api.github.com/repos/pmmp/PocketMine-MP","labels_url":"https://api.github.com/repos/pmmp/PocketMine-MP/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/pmmp/PocketMine-MP/issues/357/comments","events_url":"https://api.github.com/repos/pmmp/PocketMine-MP/issues/357/events","html_url":"https://github.com/pmmp/PocketMine-MP/pull/357","id":207499361,"number":357,"title":"Added exception throws when an error occurs during Utils::getURL() or…","user":{"login":"dktapps","id":14214667,"avatar_url":"https://avatars1.githubusercontent.com/u/14214667?v=3","gravatar_id":"","url":"https://api.github.com/users/dktapps","html_url":"https://github.com/dktapps","followers_url":"https://api.github.com/users/dktapps/followers","following_url":"https://api.github.com/users/dktapps/following{/other_user}","gists_url":"https://api.github.com/users/dktapps/gists{/gist_id}","starred_url":"https://api.github.com/users/dktapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dktapps/subscriptions","organizations_url":"https://api.github.com/users/dktapps/orgs","repos_url":"https://api.github.com/users/dktapps/repos","events_url":"https://api.github.com/users/dktapps/events{/privacy}","received_events_url":"https://api.github.com/users/dktapps/received_events","type":"User","site_admin":false},"labels":[{"id":454782351,"url":"https://api.github.com/repos/pmmp/PocketMine-MP/labels/Category:%20Plugin%20API","name":"Category: Plugin API","color":"00aa55","default":false},{"id":454787972,"url":"https://api.github.com/repos/pmmp/PocketMine-MP/labels/PR:%20Contribution","name":"PR: Contribution","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":{"login":"dktapps","id":14214667,"avatar_url":"https://avatars1.githubusercontent.com/u/14214667?v=3","gravatar_id":"","url":"https://api.github.com/users/dktapps","html_url":"https://github.com/dktapps","followers_url":"https://api.github.com/users/dktapps/followers","following_url":"https://api.github.com/users/dktapps/following{/other_user}","gists_url":"https://api.github.com/users/dktapps/gists{/gist_id}","starred_url":"https://api.github.com/users/dktapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dktapps/subscriptions","organizations_url":"https://api.github.com/users/dktapps/orgs","repos_url":"https://api.github.com/users/dktapps/repos","events_url":"https://api.github.com/users/dktapps/events{/privacy}","received_events_url":"https://api.github.com/users/dktapps/received_events","type":"User","site_admin":false},"assignees":[{"login":"dktapps","id":14214667,"avatar_url":"https://avatars1.githubusercontent.com/u/14214667?v=3","gravatar_id":"","url":"https://api.github.com/users/dktapps","html_url":"https://github.com/dktapps","followers_url":"https://api.github.com/users/dktapps/followers","following_url":"https://api.github.com/users/dktapps/following{/other_user}","gists_url":"https://api.github.com/users/dktapps/gists{/gist_id}","starred_url":"https://api.github.com/users/dktapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dktapps/subscriptions","organizations_url":"https://api.github.com/users/dktapps/orgs","repos_url":"https://api.github.com/users/dktapps/repos","events_url":"https://api.github.com/users/dktapps/events{/privacy}","received_events_url":"https://api.github.com/users/dktapps/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-02-14T12:15:57Z","updated_at":"2017-03-16T19:14:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pmmp/PocketMine-MP/pulls/357","html_url":"https://github.com/pmmp/PocketMine-MP/pull/357","diff_url":"https://github.com/pmmp/PocketMine-MP/pull/357.diff","patch_url":"https://github.com/pmmp/PocketMine-MP/pull/357.patch"},"body":"… Utils::postURL(), close #332 \r\n\r\nSome ugly boilerplate code needed due to not being able to get curl errors after closing.\r\n\r\nThis PR adds detection for errors to Utils::getURL() and Utils::postURL(), and throws exceptions containing the messages outputted by `curl_error()` if an error happened.\r\n\r\nI haven't tested this yet, if anyone would like to, please feel free to make comments below."},"comment":{"url":"https://api.github.com/repos/pmmp/PocketMine-MP/issues/comments/287162405","html_url":"https://github.com/pmmp/PocketMine-MP/pull/357#issuecomment-287162405","issue_url":"https://api.github.com/repos/pmmp/PocketMine-MP/issues/357","id":287162405,"user":{"login":"dktapps","id":14214667,"avatar_url":"https://avatars1.githubusercontent.com/u/14214667?v=3","gravatar_id":"","url":"https://api.github.com/users/dktapps","html_url":"https://github.com/dktapps","followers_url":"https://api.github.com/users/dktapps/followers","following_url":"https://api.github.com/users/dktapps/following{/other_user}","gists_url":"https://api.github.com/users/dktapps/gists{/gist_id}","starred_url":"https://api.github.com/users/dktapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dktapps/subscriptions","organizations_url":"https://api.github.com/users/dktapps/orgs","repos_url":"https://api.github.com/users/dktapps/repos","events_url":"https://api.github.com/users/dktapps/events{/privacy}","received_events_url":"https://api.github.com/users/dktapps/received_events","type":"User","site_admin":false},"created_at":"2017-03-16T19:14:33Z","updated_at":"2017-03-16T19:14:33Z","body":"Will merge this directly, I've tested this locally for use with another development."}}
{"actor":{"display_login":"dktapps"}}