{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angularfire2/issues/633","repository_url":"https://api.github.com/repos/angular/angularfire2","labels_url":"https://api.github.com/repos/angular/angularfire2/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/angular/angularfire2/issues/633/comments","events_url":"https://api.github.com/repos/angular/angularfire2/issues/633/events","html_url":"https://github.com/angular/angularfire2/issues/633","id":184030471,"number":633,"title":"[ts] Property 'code' does not exist on type 'Error'.","user":{"login":"J-Yen","id":11609784,"avatar_url":"https://avatars.githubusercontent.com/u/11609784?v=3","gravatar_id":"","url":"https://api.github.com/users/J-Yen","html_url":"https://github.com/J-Yen","followers_url":"https://api.github.com/users/J-Yen/followers","following_url":"https://api.github.com/users/J-Yen/following{/other_user}","gists_url":"https://api.github.com/users/J-Yen/gists{/gist_id}","starred_url":"https://api.github.com/users/J-Yen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J-Yen/subscriptions","organizations_url":"https://api.github.com/users/J-Yen/orgs","repos_url":"https://api.github.com/users/J-Yen/repos","events_url":"https://api.github.com/users/J-Yen/events{/privacy}","received_events_url":"https://api.github.com/users/J-Yen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-19T17:50:59Z","updated_at":"2016-10-19T18:52:04Z","closed_at":"2016-10-19T18:52:04Z","body":"How can i access the Error.code property?\r\nI get a Typescript error because the property 'code' does not exist on type 'Error'.\r\n\r\n```\r\nthis.authCtrl.login(user, {\r\n   provider: AuthProviders.Password,\r\n   method: AuthMethods.Password\r\n}).then((authData) => {\r\n    //Success\r\n}).catch((error) => {\r\n   console.log(error); // I see a code property\r\n   console.log(error.code); //error\r\n})\r\n```\r\n\r\nOr is there another way to make custom error messages? I want to show the errors in another language. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angularfire2/issues/comments/254906676","html_url":"https://github.com/angular/angularfire2/issues/633#issuecomment-254906676","issue_url":"https://api.github.com/repos/angular/angularfire2/issues/633","id":254906676,"user":{"login":"katowulf","id":959972,"avatar_url":"https://avatars.githubusercontent.com/u/959972?v=3","gravatar_id":"","url":"https://api.github.com/users/katowulf","html_url":"https://github.com/katowulf","followers_url":"https://api.github.com/users/katowulf/followers","following_url":"https://api.github.com/users/katowulf/following{/other_user}","gists_url":"https://api.github.com/users/katowulf/gists{/gist_id}","starred_url":"https://api.github.com/users/katowulf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katowulf/subscriptions","organizations_url":"https://api.github.com/users/katowulf/orgs","repos_url":"https://api.github.com/users/katowulf/repos","events_url":"https://api.github.com/users/katowulf/events{/privacy}","received_events_url":"https://api.github.com/users/katowulf/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T18:52:04Z","updated_at":"2016-10-19T18:52:04Z","body":"Please resubmit and follow the issue template. General how-to questions would be best for Stack Overflow or the mailing lists."}}
{"actor":{"display_login":"katowulf"}}