{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/2308","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/2308/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/2308/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/2308/events","html_url":"https://github.com/Automattic/mongoose/issues/2308","id":43015602,"number":2308,"title":"Add .catch to mpromise","user":{"login":"hendricha","id":4252659,"avatar_url":"https://avatars.githubusercontent.com/u/4252659?v=3","gravatar_id":"","url":"https://api.github.com/users/hendricha","html_url":"https://github.com/hendricha","followers_url":"https://api.github.com/users/hendricha/followers","following_url":"https://api.github.com/users/hendricha/following{/other_user}","gists_url":"https://api.github.com/users/hendricha/gists{/gist_id}","starred_url":"https://api.github.com/users/hendricha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hendricha/subscriptions","organizations_url":"https://api.github.com/users/hendricha/orgs","repos_url":"https://api.github.com/users/hendricha/repos","events_url":"https://api.github.com/users/hendricha/events{/privacy}","received_events_url":"https://api.github.com/users/hendricha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2014-09-17T14:10:28Z","updated_at":"2015-07-24T19:29:44Z","closed_at":"2015-07-24T14:59:32Z","body":"Hey, I noticed that mpromise does not have a .catch, like the promise library we use (bluebird). It's a nice and simple feature, and makes one's promise chains a quite readable.\r\n\r\nNote, that I did check, that .catch is not part of the Promise/A+ specs, however it does seem to be part of the ECMA Script 6 proposed specs. ( https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promisecatch ) I saw the discussion here ( https://github.com/LearnBoost/mongoose/issues/1699 ), that mpromise will eventually be just a schim until node promises arrive, and I checked out unstable node, the Promise there did have a .catch."},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/124658019","html_url":"https://github.com/Automattic/mongoose/issues/2308#issuecomment-124658019","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/2308","id":124658019,"user":{"login":"zekenie","id":962281,"avatar_url":"https://avatars.githubusercontent.com/u/962281?v=3","gravatar_id":"","url":"https://api.github.com/users/zekenie","html_url":"https://github.com/zekenie","followers_url":"https://api.github.com/users/zekenie/followers","following_url":"https://api.github.com/users/zekenie/following{/other_user}","gists_url":"https://api.github.com/users/zekenie/gists{/gist_id}","starred_url":"https://api.github.com/users/zekenie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zekenie/subscriptions","organizations_url":"https://api.github.com/users/zekenie/orgs","repos_url":"https://api.github.com/users/zekenie/repos","events_url":"https://api.github.com/users/zekenie/events{/privacy}","received_events_url":"https://api.github.com/users/zekenie/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T19:29:44Z","updated_at":"2015-07-24T19:29:44Z","body":"Hi @vkarpov15 just tried it with 4.1.0 and it doesn't seem to work for me. Throws an error that says undefined is not a function when I use `catch`"}}