{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/2774","labels_url":"https://api.github.com/repos/meteor/meteor/issues/2774/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/2774/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/2774/events","html_url":"https://github.com/meteor/meteor/issues/2774","id":45082104,"number":2774,"title":"Meteor.wrapAsync doesn't return the error object correctly","user":{"login":"laddi","id":99868,"avatar_url":"https://avatars.githubusercontent.com/u/99868?v=3","gravatar_id":"","url":"https://api.github.com/users/laddi","html_url":"https://github.com/laddi","followers_url":"https://api.github.com/users/laddi/followers","following_url":"https://api.github.com/users/laddi/following{/other_user}","gists_url":"https://api.github.com/users/laddi/gists{/gist_id}","starred_url":"https://api.github.com/users/laddi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laddi/subscriptions","organizations_url":"https://api.github.com/users/laddi/orgs","repos_url":"https://api.github.com/users/laddi/repos","events_url":"https://api.github.com/users/laddi/events{/privacy}","received_events_url":"https://api.github.com/users/laddi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:JS%20Environment","name":"Project:JS Environment","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2014-10-07T08:38:13Z","updated_at":"2015-08-04T23:04:16Z","closed_at":null,"body":"When using Meteor.wrapAsync to call external APIs, any errors will just return as standard errors and not the actual error returned by the external service.  So adding a try/catch around the call will return an error object but that object only contains the stack, not the object returned (see: https://meteorhacks.com/improved-async-utilities-in-meteor-npm.html)\r\n\r\nUsing Meteor.wrapAsync would be greatly improved if it was possible to also get the correct error returned, otherwise you're walking around in the dark when you encounter errors..."},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/127790393","html_url":"https://github.com/meteor/meteor/issues/2774#issuecomment-127790393","issue_url":"https://api.github.com/repos/meteor/meteor/issues/2774","id":127790393,"user":{"login":"themeteorchef","id":8183166,"avatar_url":"https://avatars.githubusercontent.com/u/8183166?v=3","gravatar_id":"","url":"https://api.github.com/users/themeteorchef","html_url":"https://github.com/themeteorchef","followers_url":"https://api.github.com/users/themeteorchef/followers","following_url":"https://api.github.com/users/themeteorchef/following{/other_user}","gists_url":"https://api.github.com/users/themeteorchef/gists{/gist_id}","starred_url":"https://api.github.com/users/themeteorchef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themeteorchef/subscriptions","organizations_url":"https://api.github.com/users/themeteorchef/orgs","repos_url":"https://api.github.com/users/themeteorchef/repos","events_url":"https://api.github.com/users/themeteorchef/events{/privacy}","received_events_url":"https://api.github.com/users/themeteorchef/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T23:04:16Z","updated_at":"2015-08-04T23:04:16Z","body":"Any word on a fix for this? Maybe in 1.2?"}}