{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-cldr/issues/72","repository_url":"https://api.github.com/repos/Automattic/wp-cldr","labels_url":"https://api.github.com/repos/Automattic/wp-cldr/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-cldr/issues/72/comments","events_url":"https://api.github.com/repos/Automattic/wp-cldr/issues/72/events","html_url":"https://github.com/Automattic/wp-cldr/issues/72","id":138230325,"number":72,"title":"Better handling of missing JSON files","user":{"login":"akirk","id":203408,"avatar_url":"https://avatars.githubusercontent.com/u/203408?v=3","gravatar_id":"","url":"https://api.github.com/users/akirk","html_url":"https://github.com/akirk","followers_url":"https://api.github.com/users/akirk/followers","following_url":"https://api.github.com/users/akirk/following{/other_user}","gists_url":"https://api.github.com/users/akirk/gists{/gist_id}","starred_url":"https://api.github.com/users/akirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akirk/subscriptions","organizations_url":"https://api.github.com/users/akirk/orgs","repos_url":"https://api.github.com/users/akirk/repos","events_url":"https://api.github.com/users/akirk/events{/privacy}","received_events_url":"https://api.github.com/users/akirk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-03T16:41:28Z","updated_at":"2016-03-03T16:51:56Z","closed_at":null,"body":"In light of potentially downloading the CLDR files separately, missing files should be handled better. \r\n\r\nCurrently the WP CLDR demo page looks like this:\r\n<img width=\"1041\" alt=\"missing-json\" src=\"https://cloud.githubusercontent.com/assets/203408/13501456/0fb5c3a6-e167-11e5-99c0-72638bebc551.png\">\r\n\r\nProbably it would be useful to display a notice in WP-Admin about the missing files."},"comment":{"url":"https://api.github.com/repos/Automattic/wp-cldr/issues/comments/191853908","html_url":"https://github.com/Automattic/wp-cldr/issues/72#issuecomment-191853908","issue_url":"https://api.github.com/repos/Automattic/wp-cldr/issues/72","id":191853908,"user":{"login":"akirk","id":203408,"avatar_url":"https://avatars.githubusercontent.com/u/203408?v=3","gravatar_id":"","url":"https://api.github.com/users/akirk","html_url":"https://github.com/akirk","followers_url":"https://api.github.com/users/akirk/followers","following_url":"https://api.github.com/users/akirk/following{/other_user}","gists_url":"https://api.github.com/users/akirk/gists{/gist_id}","starred_url":"https://api.github.com/users/akirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akirk/subscriptions","organizations_url":"https://api.github.com/users/akirk/orgs","repos_url":"https://api.github.com/users/akirk/repos","events_url":"https://api.github.com/users/akirk/events{/privacy}","received_events_url":"https://api.github.com/users/akirk/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T16:51:56Z","updated_at":"2016-03-03T16:51:56Z","body":"As a continuation, you could introduce a `class CLDR_Exception extends Exception {}` and use `throw new CLDR_Exception( 'missing JSON file' )` in the initializing."}}