{"action":"closed","issue":{"url":"https://api.github.com/repos/Plancke/hypixel-php/issues/12","labels_url":"https://api.github.com/repos/Plancke/hypixel-php/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Plancke/hypixel-php/issues/12/comments","events_url":"https://api.github.com/repos/Plancke/hypixel-php/issues/12/events","html_url":"https://github.com/Plancke/hypixel-php/issues/12","id":57372168,"number":12,"title":"Add error variable","user":{"login":"MaxKorlaar","id":8917249,"avatar_url":"https://avatars.githubusercontent.com/u/8917249?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxKorlaar","html_url":"https://github.com/MaxKorlaar","followers_url":"https://api.github.com/users/MaxKorlaar/followers","following_url":"https://api.github.com/users/MaxKorlaar/following{/other_user}","gists_url":"https://api.github.com/users/MaxKorlaar/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxKorlaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxKorlaar/subscriptions","organizations_url":"https://api.github.com/users/MaxKorlaar/orgs","repos_url":"https://api.github.com/users/MaxKorlaar/repos","events_url":"https://api.github.com/users/MaxKorlaar/events{/privacy}","received_events_url":"https://api.github.com/users/MaxKorlaar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-11T20:25:59Z","updated_at":"2015-04-12T11:23:45Z","closed_at":"2015-04-12T11:23:45Z","body":"When I use any function that uses the fetch function, doesn't have anything in cache and can't reach the API, it returns null. The fetch function itself instead does return the error, which is what I need.\r\n\r\nIt would be nice if there was a function, for example, ``getError()``, which returns the latest cURL error or whatever error occured in fetch, because the error is not returned when using, for example, ``getPlayer()``.\r\n\r\nI'm not sure if there are better ways, but this seems good."}}