{"action":"created","comment":{"url":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/comments/23815944","id":23815944,"diff_hunk":"@@ -29,7 +36,15 @@ window.User = Backbone.Model.extend({\n         window.localStorage.setItem(\"_user.name\", data.attributes.username);\n         router.navigate('/', { trigger: true });\n       },\n-      error: function() { console.log(\"User signup error\"); }\n+      error: function() {\n+        console.log(\"User signup error\");\n+        // _this.trigger(\"signupError\", _this);\n+        var options = {\n+          text: \"Error: Username or email is already taken. Please try again.\"\n+        };\n+        this.formErrorView = new formErrorView(options);","path":"client/src/app/models/user.js","position":27,"original_position":27,"commit_id":"928738f51c8942f471e828713b484731dd72d0f0","original_commit_id":"928738f51c8942f471e828713b484731dd72d0f0","user":{"login":"d4ncer","id":1840377,"avatar_url":"https://avatars.githubusercontent.com/u/1840377?v=3","gravatar_id":"","url":"https://api.github.com/users/d4ncer","html_url":"https://github.com/d4ncer","followers_url":"https://api.github.com/users/d4ncer/followers","following_url":"https://api.github.com/users/d4ncer/following{/other_user}","gists_url":"https://api.github.com/users/d4ncer/gists{/gist_id}","starred_url":"https://api.github.com/users/d4ncer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4ncer/subscriptions","organizations_url":"https://api.github.com/users/d4ncer/orgs","repos_url":"https://api.github.com/users/d4ncer/repos","events_url":"https://api.github.com/users/d4ncer/events{/privacy}","received_events_url":"https://api.github.com/users/d4ncer/received_events","type":"User","site_admin":false},"body":"In addition, ideally the error message should be the same as what the server sends back. ","created_at":"2015-01-30T00:33:13Z","updated_at":"2015-01-30T00:33:13Z","html_url":"https://github.com/OceanOracles/OceanOracles/pull/86#discussion_r23815944","pull_request_url":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/86","_links":{"self":{"href":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/comments/23815944"},"html":{"href":"https://github.com/OceanOracles/OceanOracles/pull/86#discussion_r23815944"},"pull_request":{"href":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/86","id":28327720,"html_url":"https://github.com/OceanOracles/OceanOracles/pull/86","diff_url":"https://github.com/OceanOracles/OceanOracles/pull/86.diff","patch_url":"https://github.com/OceanOracles/OceanOracles/pull/86.patch","issue_url":"https://api.github.com/repos/OceanOracles/OceanOracles/issues/86","number":86,"state":"open","locked":false,"title":"Add error messages when user tries to login or signup","user":{"login":"ekeric13","id":6489651,"avatar_url":"https://avatars.githubusercontent.com/u/6489651?v=3","gravatar_id":"","url":"https://api.github.com/users/ekeric13","html_url":"https://github.com/ekeric13","followers_url":"https://api.github.com/users/ekeric13/followers","following_url":"https://api.github.com/users/ekeric13/following{/other_user}","gists_url":"https://api.github.com/users/ekeric13/gists{/gist_id}","starred_url":"https://api.github.com/users/ekeric13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekeric13/subscriptions","organizations_url":"https://api.github.com/users/ekeric13/orgs","repos_url":"https://api.github.com/users/ekeric13/repos","events_url":"https://api.github.com/users/ekeric13/events{/privacy}","received_events_url":"https://api.github.com/users/ekeric13/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-30T00:14:04Z","updated_at":"2015-01-30T00:33:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ab9a483dfc987bcf06d1c80159ae23c28580d79","assignee":{"login":"d4ncer","id":1840377,"avatar_url":"https://avatars.githubusercontent.com/u/1840377?v=3","gravatar_id":"","url":"https://api.github.com/users/d4ncer","html_url":"https://github.com/d4ncer","followers_url":"https://api.github.com/users/d4ncer/followers","following_url":"https://api.github.com/users/d4ncer/following{/other_user}","gists_url":"https://api.github.com/users/d4ncer/gists{/gist_id}","starred_url":"https://api.github.com/users/d4ncer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4ncer/subscriptions","organizations_url":"https://api.github.com/users/d4ncer/orgs","repos_url":"https://api.github.com/users/d4ncer/repos","events_url":"https://api.github.com/users/d4ncer/events{/privacy}","received_events_url":"https://api.github.com/users/d4ncer/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/86/commits","review_comments_url":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/86/comments","review_comment_url":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/comments/{number}","comments_url":"https://api.github.com/repos/OceanOracles/OceanOracles/issues/86/comments","statuses_url":"https://api.github.com/repos/OceanOracles/OceanOracles/statuses/928738f51c8942f471e828713b484731dd72d0f0","head":{"label":"ekeric13:EK_form_error_messages","ref":"EK_form_error_messages","sha":"928738f51c8942f471e828713b484731dd72d0f0","user":{"login":"ekeric13","id":6489651,"avatar_url":"https://avatars.githubusercontent.com/u/6489651?v=3","gravatar_id":"","url":"https://api.github.com/users/ekeric13","html_url":"https://github.com/ekeric13","followers_url":"https://api.github.com/users/ekeric13/followers","following_url":"https://api.github.com/users/ekeric13/following{/other_user}","gists_url":"https://api.github.com/users/ekeric13/gists{/gist_id}","starred_url":"https://api.github.com/users/ekeric13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekeric13/subscriptions","organizations_url":"https://api.github.com/users/ekeric13/orgs","repos_url":"https://api.github.com/users/ekeric13/repos","events_url":"https://api.github.com/users/ekeric13/events{/privacy}","received_events_url":"https://api.github.com/users/ekeric13/received_events","type":"User","site_admin":false},"repo":{"id":29620619,"name":"OceanOracles","full_name":"ekeric13/OceanOracles","owner":{"login":"ekeric13","id":6489651,"avatar_url":"https://avatars.githubusercontent.com/u/6489651?v=3","gravatar_id":"","url":"https://api.github.com/users/ekeric13","html_url":"https://github.com/ekeric13","followers_url":"https://api.github.com/users/ekeric13/followers","following_url":"https://api.github.com/users/ekeric13/following{/other_user}","gists_url":"https://api.github.com/users/ekeric13/gists{/gist_id}","starred_url":"https://api.github.com/users/ekeric13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekeric13/subscriptions","organizations_url":"https://api.github.com/users/ekeric13/orgs","repos_url":"https://api.github.com/users/ekeric13/repos","events_url":"https://api.github.com/users/ekeric13/events{/privacy}","received_events_url":"https://api.github.com/users/ekeric13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ekeric13/OceanOracles","description":"","fork":true,"url":"https://api.github.com/repos/ekeric13/OceanOracles","forks_url":"https://api.github.com/repos/ekeric13/OceanOracles/forks","keys_url":"https://api.github.com/repos/ekeric13/OceanOracles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ekeric13/OceanOracles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ekeric13/OceanOracles/teams","hooks_url":"https://api.github.com/repos/ekeric13/OceanOracles/hooks","issue_events_url":"https://api.github.com/repos/ekeric13/OceanOracles/issues/events{/number}","events_url":"https://api.github.com/repos/ekeric13/OceanOracles/events","assignees_url":"https://api.github.com/repos/ekeric13/OceanOracles/assignees{/user}","branches_url":"https://api.github.com/repos/ekeric13/OceanOracles/branches{/branch}","tags_url":"https://api.github.com/repos/ekeric13/OceanOracles/tags","blobs_url":"https://api.github.com/repos/ekeric13/OceanOracles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ekeric13/OceanOracles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ekeric13/OceanOracles/git/refs{/sha}","trees_url":"https://api.github.com/repos/ekeric13/OceanOracles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ekeric13/OceanOracles/statuses/{sha}","languages_url":"https://api.github.com/repos/ekeric13/OceanOracles/languages","stargazers_url":"https://api.github.com/repos/ekeric13/OceanOracles/stargazers","contributors_url":"https://api.github.com/repos/ekeric13/OceanOracles/contributors","subscribers_url":"https://api.github.com/repos/ekeric13/OceanOracles/subscribers","subscription_url":"https://api.github.com/repos/ekeric13/OceanOracles/subscription","commits_url":"https://api.github.com/repos/ekeric13/OceanOracles/commits{/sha}","git_commits_url":"https://api.github.com/repos/ekeric13/OceanOracles/git/commits{/sha}","comments_url":"https://api.github.com/repos/ekeric13/OceanOracles/comments{/number}","issue_comment_url":"https://api.github.com/repos/ekeric13/OceanOracles/issues/comments/{number}","contents_url":"https://api.github.com/repos/ekeric13/OceanOracles/contents/{+path}","compare_url":"https://api.github.com/repos/ekeric13/OceanOracles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ekeric13/OceanOracles/merges","archive_url":"https://api.github.com/repos/ekeric13/OceanOracles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ekeric13/OceanOracles/downloads","issues_url":"https://api.github.com/repos/ekeric13/OceanOracles/issues{/number}","pulls_url":"https://api.github.com/repos/ekeric13/OceanOracles/pulls{/number}","milestones_url":"https://api.github.com/repos/ekeric13/OceanOracles/milestones{/number}","notifications_url":"https://api.github.com/repos/ekeric13/OceanOracles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ekeric13/OceanOracles/labels{/name}","releases_url":"https://api.github.com/repos/ekeric13/OceanOracles/releases{/id}","created_at":"2015-01-21T22:07:35Z","updated_at":"2015-01-29T21:59:28Z","pushed_at":"2015-01-30T00:13:04Z","git_url":"git://github.com/ekeric13/OceanOracles.git","ssh_url":"git@github.com:ekeric13/OceanOracles.git","clone_url":"https://github.com/ekeric13/OceanOracles.git","svn_url":"https://github.com/ekeric13/OceanOracles","homepage":null,"size":791,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OceanOracles:master","ref":"master","sha":"5186098dc213a4614130a0f7e7ff6a5799eb18de","user":{"login":"OceanOracles","id":10639740,"avatar_url":"https://avatars.githubusercontent.com/u/10639740?v=3","gravatar_id":"","url":"https://api.github.com/users/OceanOracles","html_url":"https://github.com/OceanOracles","followers_url":"https://api.github.com/users/OceanOracles/followers","following_url":"https://api.github.com/users/OceanOracles/following{/other_user}","gists_url":"https://api.github.com/users/OceanOracles/gists{/gist_id}","starred_url":"https://api.github.com/users/OceanOracles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OceanOracles/subscriptions","organizations_url":"https://api.github.com/users/OceanOracles/orgs","repos_url":"https://api.github.com/users/OceanOracles/repos","events_url":"https://api.github.com/users/OceanOracles/events{/privacy}","received_events_url":"https://api.github.com/users/OceanOracles/received_events","type":"Organization","site_admin":false},"repo":{"id":29617465,"name":"OceanOracles","full_name":"OceanOracles/OceanOracles","owner":{"login":"OceanOracles","id":10639740,"avatar_url":"https://avatars.githubusercontent.com/u/10639740?v=3","gravatar_id":"","url":"https://api.github.com/users/OceanOracles","html_url":"https://github.com/OceanOracles","followers_url":"https://api.github.com/users/OceanOracles/followers","following_url":"https://api.github.com/users/OceanOracles/following{/other_user}","gists_url":"https://api.github.com/users/OceanOracles/gists{/gist_id}","starred_url":"https://api.github.com/users/OceanOracles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OceanOracles/subscriptions","organizations_url":"https://api.github.com/users/OceanOracles/orgs","repos_url":"https://api.github.com/users/OceanOracles/repos","events_url":"https://api.github.com/users/OceanOracles/events{/privacy}","received_events_url":"https://api.github.com/users/OceanOracles/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OceanOracles/OceanOracles","description":"","fork":false,"url":"https://api.github.com/repos/OceanOracles/OceanOracles","forks_url":"https://api.github.com/repos/OceanOracles/OceanOracles/forks","keys_url":"https://api.github.com/repos/OceanOracles/OceanOracles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OceanOracles/OceanOracles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OceanOracles/OceanOracles/teams","hooks_url":"https://api.github.com/repos/OceanOracles/OceanOracles/hooks","issue_events_url":"https://api.github.com/repos/OceanOracles/OceanOracles/issues/events{/number}","events_url":"https://api.github.com/repos/OceanOracles/OceanOracles/events","assignees_url":"https://api.github.com/repos/OceanOracles/OceanOracles/assignees{/user}","branches_url":"https://api.github.com/repos/OceanOracles/OceanOracles/branches{/branch}","tags_url":"https://api.github.com/repos/OceanOracles/OceanOracles/tags","blobs_url":"https://api.github.com/repos/OceanOracles/OceanOracles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OceanOracles/OceanOracles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OceanOracles/OceanOracles/git/refs{/sha}","trees_url":"https://api.github.com/repos/OceanOracles/OceanOracles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OceanOracles/OceanOracles/statuses/{sha}","languages_url":"https://api.github.com/repos/OceanOracles/OceanOracles/languages","stargazers_url":"https://api.github.com/repos/OceanOracles/OceanOracles/stargazers","contributors_url":"https://api.github.com/repos/OceanOracles/OceanOracles/contributors","subscribers_url":"https://api.github.com/repos/OceanOracles/OceanOracles/subscribers","subscription_url":"https://api.github.com/repos/OceanOracles/OceanOracles/subscription","commits_url":"https://api.github.com/repos/OceanOracles/OceanOracles/commits{/sha}","git_commits_url":"https://api.github.com/repos/OceanOracles/OceanOracles/git/commits{/sha}","comments_url":"https://api.github.com/repos/OceanOracles/OceanOracles/comments{/number}","issue_comment_url":"https://api.github.com/repos/OceanOracles/OceanOracles/issues/comments/{number}","contents_url":"https://api.github.com/repos/OceanOracles/OceanOracles/contents/{+path}","compare_url":"https://api.github.com/repos/OceanOracles/OceanOracles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OceanOracles/OceanOracles/merges","archive_url":"https://api.github.com/repos/OceanOracles/OceanOracles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OceanOracles/OceanOracles/downloads","issues_url":"https://api.github.com/repos/OceanOracles/OceanOracles/issues{/number}","pulls_url":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls{/number}","milestones_url":"https://api.github.com/repos/OceanOracles/OceanOracles/milestones{/number}","notifications_url":"https://api.github.com/repos/OceanOracles/OceanOracles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OceanOracles/OceanOracles/labels{/name}","releases_url":"https://api.github.com/repos/OceanOracles/OceanOracles/releases{/id}","created_at":"2015-01-21T21:36:51Z","updated_at":"2015-01-29T22:50:55Z","pushed_at":"2015-01-29T22:50:55Z","git_url":"git://github.com/OceanOracles/OceanOracles.git","ssh_url":"git@github.com:OceanOracles/OceanOracles.git","clone_url":"https://github.com/OceanOracles/OceanOracles.git","svn_url":"https://github.com/OceanOracles/OceanOracles","homepage":null,"size":1065,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/86"},"html":{"href":"https://github.com/OceanOracles/OceanOracles/pull/86"},"issue":{"href":"https://api.github.com/repos/OceanOracles/OceanOracles/issues/86"},"comments":{"href":"https://api.github.com/repos/OceanOracles/OceanOracles/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/OceanOracles/OceanOracles/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/OceanOracles/OceanOracles/statuses/928738f51c8942f471e828713b484731dd72d0f0"}}}}