{"action":"created","issue":{"url":"https://api.github.com/repos/inventit/moatjs-stub/issues/2","labels_url":"https://api.github.com/repos/inventit/moatjs-stub/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/inventit/moatjs-stub/issues/2/comments","events_url":"https://api.github.com/repos/inventit/moatjs-stub/issues/2/events","html_url":"https://github.com/inventit/moatjs-stub/issues/2","id":91169901,"number":2,"title":"Invalid error handling","user":{"login":"toshiyukihina","id":1883527,"avatar_url":"https://avatars.githubusercontent.com/u/1883527?v=3","gravatar_id":"","url":"https://api.github.com/users/toshiyukihina","html_url":"https://github.com/toshiyukihina","followers_url":"https://api.github.com/users/toshiyukihina/followers","following_url":"https://api.github.com/users/toshiyukihina/following{/other_user}","gists_url":"https://api.github.com/users/toshiyukihina/gists{/gist_id}","starred_url":"https://api.github.com/users/toshiyukihina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshiyukihina/subscriptions","organizations_url":"https://api.github.com/users/toshiyukihina/orgs","repos_url":"https://api.github.com/users/toshiyukihina/repos","events_url":"https://api.github.com/users/toshiyukihina/events{/privacy}","received_events_url":"https://api.github.com/users/toshiyukihina/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"toshiyukihina","id":1883527,"avatar_url":"https://avatars.githubusercontent.com/u/1883527?v=3","gravatar_id":"","url":"https://api.github.com/users/toshiyukihina","html_url":"https://github.com/toshiyukihina","followers_url":"https://api.github.com/users/toshiyukihina/followers","following_url":"https://api.github.com/users/toshiyukihina/following{/other_user}","gists_url":"https://api.github.com/users/toshiyukihina/gists{/gist_id}","starred_url":"https://api.github.com/users/toshiyukihina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshiyukihina/subscriptions","organizations_url":"https://api.github.com/users/toshiyukihina/orgs","repos_url":"https://api.github.com/users/toshiyukihina/repos","events_url":"https://api.github.com/users/toshiyukihina/events{/privacy}","received_events_url":"https://api.github.com/users/toshiyukihina/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/inventit/moatjs-stub/milestones/1","html_url":"https://github.com/inventit/moatjs-stub/milestones/1.2.2","labels_url":"https://api.github.com/repos/inventit/moatjs-stub/milestones/1/labels","id":1182144,"number":1,"title":"1.2.2","description":null,"creator":{"login":"toshiyukihina","id":1883527,"avatar_url":"https://avatars.githubusercontent.com/u/1883527?v=3","gravatar_id":"","url":"https://api.github.com/users/toshiyukihina","html_url":"https://github.com/toshiyukihina","followers_url":"https://api.github.com/users/toshiyukihina/followers","following_url":"https://api.github.com/users/toshiyukihina/following{/other_user}","gists_url":"https://api.github.com/users/toshiyukihina/gists{/gist_id}","starred_url":"https://api.github.com/users/toshiyukihina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshiyukihina/subscriptions","organizations_url":"https://api.github.com/users/toshiyukihina/orgs","repos_url":"https://api.github.com/users/toshiyukihina/repos","events_url":"https://api.github.com/users/toshiyukihina/events{/privacy}","received_events_url":"https://api.github.com/users/toshiyukihina/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-06-26T07:06:02Z","updated_at":"2015-07-15T04:05:11Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-26T06:27:53Z","updated_at":"2015-07-15T04:05:12Z","closed_at":"2015-07-15T04:05:11Z","body":"Invalid error handling is here: \r\nhttps://github.com/inventit/moatjs-stub/blob/master/moat.js#L228\r\n\r\n```\r\n        var descriptor = packageJson.models[type];\r\n        if (!type) {\r\n          throwError('Unknown type:' + type);\r\n        }\r\n```\r\n\r\nFixed to be as follows:\r\n\r\n```\r\n        var descriptor = packageJson.models[type];\r\n        if (!descriptor) {\r\n          throwError('Unknown type:' + type);\r\n        }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/inventit/moatjs-stub/issues/comments/121481484","html_url":"https://github.com/inventit/moatjs-stub/issues/2#issuecomment-121481484","issue_url":"https://api.github.com/repos/inventit/moatjs-stub/issues/2","id":121481484,"user":{"login":"toshiyukihina","id":1883527,"avatar_url":"https://avatars.githubusercontent.com/u/1883527?v=3","gravatar_id":"","url":"https://api.github.com/users/toshiyukihina","html_url":"https://github.com/toshiyukihina","followers_url":"https://api.github.com/users/toshiyukihina/followers","following_url":"https://api.github.com/users/toshiyukihina/following{/other_user}","gists_url":"https://api.github.com/users/toshiyukihina/gists{/gist_id}","starred_url":"https://api.github.com/users/toshiyukihina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshiyukihina/subscriptions","organizations_url":"https://api.github.com/users/toshiyukihina/orgs","repos_url":"https://api.github.com/users/toshiyukihina/repos","events_url":"https://api.github.com/users/toshiyukihina/events{/privacy}","received_events_url":"https://api.github.com/users/toshiyukihina/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T04:05:11Z","updated_at":"2015-07-15T04:05:11Z","body":"Released as v1.2.2"}}