{"action":"created","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/511","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/511/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/511/events","html_url":"https://github.com/petkaantonov/bluebird/issues/511","id":59216572,"number":511,"title":"How to properly reject Promise and why deferring is anti-pattern?","user":{"login":"fourpixels","id":6096926,"avatar_url":"https://avatars.githubusercontent.com/u/6096926?v=3","gravatar_id":"","url":"https://api.github.com/users/fourpixels","html_url":"https://github.com/fourpixels","followers_url":"https://api.github.com/users/fourpixels/followers","following_url":"https://api.github.com/users/fourpixels/following{/other_user}","gists_url":"https://api.github.com/users/fourpixels/gists{/gist_id}","starred_url":"https://api.github.com/users/fourpixels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourpixels/subscriptions","organizations_url":"https://api.github.com/users/fourpixels/orgs","repos_url":"https://api.github.com/users/fourpixels/repos","events_url":"https://api.github.com/users/fourpixels/events{/privacy}","received_events_url":"https://api.github.com/users/fourpixels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-27T10:16:55Z","updated_at":"2015-02-27T14:22:35Z","closed_at":"2015-02-27T11:29:37Z","body":"Hi @petkaantonov ,\r\nI would love if you have spare 10 minutes to read this question of mine: http://stackoverflow.com/q/28761365/2065080\r\n\r\nI just don't understand why deferring is an anti-pattern (as well as .then(success, fail)). I've posted an example (which I can also post here) with my real-life problem that I can't seem to solve properly. I can't get `promisify` to work and I ended up deferring.\r\n\r\nYou've stated those anti-patterns, but I can't seem to understand why is that so.\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/comments/76401319","html_url":"https://github.com/petkaantonov/bluebird/issues/511#issuecomment-76401319","issue_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/511","id":76401319,"user":{"login":"petkaantonov","id":829734,"avatar_url":"https://avatars.githubusercontent.com/u/829734?v=3","gravatar_id":"","url":"https://api.github.com/users/petkaantonov","html_url":"https://github.com/petkaantonov","followers_url":"https://api.github.com/users/petkaantonov/followers","following_url":"https://api.github.com/users/petkaantonov/following{/other_user}","gists_url":"https://api.github.com/users/petkaantonov/gists{/gist_id}","starred_url":"https://api.github.com/users/petkaantonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petkaantonov/subscriptions","organizations_url":"https://api.github.com/users/petkaantonov/orgs","repos_url":"https://api.github.com/users/petkaantonov/repos","events_url":"https://api.github.com/users/petkaantonov/events{/privacy}","received_events_url":"https://api.github.com/users/petkaantonov/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T14:22:35Z","updated_at":"2015-02-27T14:22:35Z","body":"> I just got to understand that this is part of Bluebird code, rather than specification requirement (I mean throwing errors on reject errors)\r\n\r\nThere is no `throwing` but rejections work exactly like exceptions, you just use .catch() method to catch them instead of try-catch blocks."}}