{"action":"created","issue":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/175","labels_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/175/comments","events_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/175/events","html_url":"https://github.com/mxcl/PromiseKit/issues/175","id":69152285,"number":175,"title":"\"Ambiguous use of 'catch'\"","user":{"login":"donnywals","id":1272208,"avatar_url":"https://avatars.githubusercontent.com/u/1272208?v=3","gravatar_id":"","url":"https://api.github.com/users/donnywals","html_url":"https://github.com/donnywals","followers_url":"https://api.github.com/users/donnywals/followers","following_url":"https://api.github.com/users/donnywals/following{/other_user}","gists_url":"https://api.github.com/users/donnywals/gists{/gist_id}","starred_url":"https://api.github.com/users/donnywals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donnywals/subscriptions","organizations_url":"https://api.github.com/users/donnywals/orgs","repos_url":"https://api.github.com/users/donnywals/repos","events_url":"https://api.github.com/users/donnywals/events{/privacy}","received_events_url":"https://api.github.com/users/donnywals/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-17T14:42:30Z","updated_at":"2015-04-17T15:30:20Z","closed_at":null,"body":"When I try to catch an error like this:\r\n\r\n``` swift\r\nfunc fetchFeed() {\r\n    feedPromise().then{ [weak self] (data:[FeedItem]) -> () in\r\n        self?.data = data\r\n        return\r\n    }.catch(onQueue: dispatch_get_main_queue(), body: {(error: NSError) -> Void in\r\n        println(\"error caught\")\r\n    })\r\n}\r\n\r\nfunc feedPromise() -> Promise<[FeedItem]> {\r\n// rest of the code..\r\n```\r\n\r\nI get the following error:\r\n__Ambiguous use of 'catch'__\r\n\r\nI saw issue #56 but the code that worked in that issue doesn't seem to work for me. Any ideas on how to fix / work around this?\r\n"},"comment":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/comments/94009687","html_url":"https://github.com/mxcl/PromiseKit/issues/175#issuecomment-94009687","issue_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/175","id":94009687,"user":{"login":"donnywals","id":1272208,"avatar_url":"https://avatars.githubusercontent.com/u/1272208?v=3","gravatar_id":"","url":"https://api.github.com/users/donnywals","html_url":"https://github.com/donnywals","followers_url":"https://api.github.com/users/donnywals/followers","following_url":"https://api.github.com/users/donnywals/following{/other_user}","gists_url":"https://api.github.com/users/donnywals/gists{/gist_id}","starred_url":"https://api.github.com/users/donnywals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donnywals/subscriptions","organizations_url":"https://api.github.com/users/donnywals/orgs","repos_url":"https://api.github.com/users/donnywals/repos","events_url":"https://api.github.com/users/donnywals/events{/privacy}","received_events_url":"https://api.github.com/users/donnywals/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T15:30:20Z","updated_at":"2015-04-17T15:30:20Z","body":"The code sample you put here seems to work, thanks a lot!\r\n\r\n I've been messing for way too long.."}}