{"action":"created","issue":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/299","labels_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/299/comments","events_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/299/events","html_url":"https://github.com/mxcl/PromiseKit/issues/299","id":113055797,"number":299,"title":"Promise3 + catching an error on Promise<Void>","user":{"login":"daanporon","id":71901,"avatar_url":"https://avatars.githubusercontent.com/u/71901?v=3","gravatar_id":"","url":"https://api.github.com/users/daanporon","html_url":"https://github.com/daanporon","followers_url":"https://api.github.com/users/daanporon/followers","following_url":"https://api.github.com/users/daanporon/following{/other_user}","gists_url":"https://api.github.com/users/daanporon/gists{/gist_id}","starred_url":"https://api.github.com/users/daanporon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daanporon/subscriptions","organizations_url":"https://api.github.com/users/daanporon/orgs","repos_url":"https://api.github.com/users/daanporon/repos","events_url":"https://api.github.com/users/daanporon/events{/privacy}","received_events_url":"https://api.github.com/users/daanporon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-23T16:36:09Z","updated_at":"2015-10-23T20:19:02Z","closed_at":null,"body":"Not sure what i'm doing wrong but i returned a promise in one of my functions a Promise<Void> because i don't need to give something back when it succeeds. But now when i try to catch the error it always gives me this: \"Cannot call value of non-function type 'ErrorType?'\". I'm currently working on the last Xcode (7.1) and this is what i am trying to do:\r\n\r\n    myFunction().error() {\r\n            error -> Void in\r\n            \r\n            print(\"My error: \\(error.description)\")\r\n        }\r\n\r\nDoes anyone know what i am doing wrong?\r\n\r\nkind regards,\r\nDaan"},"comment":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/comments/150679650","html_url":"https://github.com/mxcl/PromiseKit/issues/299#issuecomment-150679650","issue_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/299","id":150679650,"user":{"login":"mxcl","id":58962,"avatar_url":"https://avatars.githubusercontent.com/u/58962?v=3","gravatar_id":"","url":"https://api.github.com/users/mxcl","html_url":"https://github.com/mxcl","followers_url":"https://api.github.com/users/mxcl/followers","following_url":"https://api.github.com/users/mxcl/following{/other_user}","gists_url":"https://api.github.com/users/mxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/mxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxcl/subscriptions","organizations_url":"https://api.github.com/users/mxcl/orgs","repos_url":"https://api.github.com/users/mxcl/repos","events_url":"https://api.github.com/users/mxcl/events{/privacy}","received_events_url":"https://api.github.com/users/mxcl/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T20:19:02Z","updated_at":"2015-10-23T20:19:02Z","body":"Don't use () it is confusing the swift compiler apparently. "}}