{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13625","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13625/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13625/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13625/events","html_url":"https://github.com/cocos2d/cocos2d-x/pull/13625","id":103906114,"number":13625,"title":"Update CCImage.cpp","user":{"login":"frranck","id":2470571,"avatar_url":"https://avatars.githubusercontent.com/u/2470571?v=3","gravatar_id":"","url":"https://api.github.com/users/frranck","html_url":"https://github.com/frranck","followers_url":"https://api.github.com/users/frranck/followers","following_url":"https://api.github.com/users/frranck/following{/other_user}","gists_url":"https://api.github.com/users/frranck/gists{/gist_id}","starred_url":"https://api.github.com/users/frranck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frranck/subscriptions","organizations_url":"https://api.github.com/users/frranck/orgs","repos_url":"https://api.github.com/users/frranck/repos","events_url":"https://api.github.com/users/frranck/events{/privacy}","received_events_url":"https://api.github.com/users/frranck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-30T07:40:49Z","updated_at":"2015-09-02T16:10:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/13625","html_url":"https://github.com/cocos2d/cocos2d-x/pull/13625","diff_url":"https://github.com/cocos2d/cocos2d-x/pull/13625.diff","patch_url":"https://github.com/cocos2d/cocos2d-x/pull/13625.patch"},"body":"When you're creating a sprite (e.g. with Sprite* Sprite::create(filename))\r\nThere's no way to test the file before, without getting \"a unsupport image format!\" thrown."},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/137146956","html_url":"https://github.com/cocos2d/cocos2d-x/pull/13625#issuecomment-137146956","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13625","id":137146956,"user":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T16:10:11Z","updated_at":"2015-09-02T16:10:11Z","body":"@frranck Thanks for the clarification. In this particular case, I agree with you, a log and return null is sufficient to notify developers, and the return value can be useful to make game logic more flexible."}}