{"action":"created","issue":{"url":"https://api.github.com/repos/neumino/thinky/issues/428","labels_url":"https://api.github.com/repos/neumino/thinky/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/neumino/thinky/issues/428/comments","events_url":"https://api.github.com/repos/neumino/thinky/issues/428/events","html_url":"https://github.com/neumino/thinky/issues/428","id":127783846,"number":428,"title":"using .run with a callback should capture errors","user":{"login":"contra","id":425716,"avatar_url":"https://avatars.githubusercontent.com/u/425716?v=3","gravatar_id":"","url":"https://api.github.com/users/contra","html_url":"https://github.com/contra","followers_url":"https://api.github.com/users/contra/followers","following_url":"https://api.github.com/users/contra/following{/other_user}","gists_url":"https://api.github.com/users/contra/gists{/gist_id}","starred_url":"https://api.github.com/users/contra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contra/subscriptions","organizations_url":"https://api.github.com/users/contra/orgs","repos_url":"https://api.github.com/users/contra/repos","events_url":"https://api.github.com/users/contra/events{/privacy}","received_events_url":"https://api.github.com/users/contra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-20T21:06:52Z","updated_at":"2016-01-20T21:34:58Z","closed_at":null,"body":"`User.get(id).run(cb)` should capture errors, since you are handling them in the callback. It's super funky to support callbacks, but require people to use promises if they want to handle errors"},"comment":{"url":"https://api.github.com/repos/neumino/thinky/issues/comments/173366779","html_url":"https://github.com/neumino/thinky/issues/428#issuecomment-173366779","issue_url":"https://api.github.com/repos/neumino/thinky/issues/428","id":173366779,"user":{"login":"contra","id":425716,"avatar_url":"https://avatars.githubusercontent.com/u/425716?v=3","gravatar_id":"","url":"https://api.github.com/users/contra","html_url":"https://github.com/contra","followers_url":"https://api.github.com/users/contra/followers","following_url":"https://api.github.com/users/contra/following{/other_user}","gists_url":"https://api.github.com/users/contra/gists{/gist_id}","starred_url":"https://api.github.com/users/contra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contra/subscriptions","organizations_url":"https://api.github.com/users/contra/orgs","repos_url":"https://api.github.com/users/contra/repos","events_url":"https://api.github.com/users/contra/events{/privacy}","received_events_url":"https://api.github.com/users/contra/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T21:34:58Z","updated_at":"2016-01-20T21:34:58Z","body":"@ondreian My specific case is this\r\n\r\n```js\r\nUser.get(id).run(cb)\r\n```\r\n\r\nIf the document doesn't exist the promise throws a DocumentNotFoundError as well as calling the callback with the error. Expected behavior is that it only calls the callback and doesn't throw from the promise."}}