{"action":"created","comment":{"url":"https://api.github.com/repos/tom08/CSC450Group1/pulls/comments/90792647","pull_request_review_id":11308137,"id":90792647,"diff_hunk":"@@ -206,16 +212,37 @@ public String database_control(){\n \t@RequestMapping(value = \"/database/update\", method = RequestMethod.POST)\n \tpublic String update_from_remote(){\n         UpdateClient updater = new UpdateClient();\n+        String message = \"\";\n+        String url = \"redirect:/\";\n         try{\n             updater.connectToServer();\n         }\n         catch(IOException e){\n-            return \"redirect:/database\";\n+        \tmessage = \"There was a problem connecting to the server.\";\n+        \tmessage += \"<br>Message: \" + e.getMessage();\n+        \tmessage += \"<br>Cause (NULL if unknown): \" +  e.getCause();\n+        \tfor(int i = 0; i < e.getStackTrace().length; i++) {\n+        \t\tmessage += \"<br>\" + e.getStackTrace()[i].toString();","path":"ARS/src/main/java/com/CSC450/ars/controller/HomeController.java","position":45,"original_position":45,"commit_id":"e74d3b60a71a6d0e44fa262e9afc16d182bada44","original_commit_id":"e74d3b60a71a6d0e44fa262e9afc16d182bada44","user":{"login":"tom08","id":11857867,"avatar_url":"https://avatars.githubusercontent.com/u/11857867?v=3","gravatar_id":"","url":"https://api.github.com/users/tom08","html_url":"https://github.com/tom08","followers_url":"https://api.github.com/users/tom08/followers","following_url":"https://api.github.com/users/tom08/following{/other_user}","gists_url":"https://api.github.com/users/tom08/gists{/gist_id}","starred_url":"https://api.github.com/users/tom08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom08/subscriptions","organizations_url":"https://api.github.com/users/tom08/orgs","repos_url":"https://api.github.com/users/tom08/repos","events_url":"https://api.github.com/users/tom08/events{/privacy}","received_events_url":"https://api.github.com/users/tom08/received_events","type":"User","site_admin":false},"body":"We probably should not print out the stack trace for a production version.","created_at":"2016-12-05T01:14:31Z","updated_at":"2016-12-05T01:19:47Z","html_url":"https://github.com/tom08/CSC450Group1/pull/13#discussion_r90792647","pull_request_url":"https://api.github.com/repos/tom08/CSC450Group1/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/tom08/CSC450Group1/pulls/comments/90792647"},"html":{"href":"https://github.com/tom08/CSC450Group1/pull/13#discussion_r90792647"},"pull_request":{"href":"https://api.github.com/repos/tom08/CSC450Group1/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/tom08/CSC450Group1/pulls/13","id":96451398,"html_url":"https://github.com/tom08/CSC450Group1/pull/13","diff_url":"https://github.com/tom08/CSC450Group1/pull/13.diff","patch_url":"https://github.com/tom08/CSC450Group1/pull/13.patch","issue_url":"https://api.github.com/repos/tom08/CSC450Group1/issues/13","number":13,"state":"open","locked":false,"title":"Add error page","user":{"login":"Natenador","id":12717918,"avatar_url":"https://avatars.githubusercontent.com/u/12717918?v=3","gravatar_id":"","url":"https://api.github.com/users/Natenador","html_url":"https://github.com/Natenador","followers_url":"https://api.github.com/users/Natenador/followers","following_url":"https://api.github.com/users/Natenador/following{/other_user}","gists_url":"https://api.github.com/users/Natenador/gists{/gist_id}","starred_url":"https://api.github.com/users/Natenador/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natenador/subscriptions","organizations_url":"https://api.github.com/users/Natenador/orgs","repos_url":"https://api.github.com/users/Natenador/repos","events_url":"https://api.github.com/users/Natenador/events{/privacy}","received_events_url":"https://api.github.com/users/Natenador/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-04T23:10:38Z","updated_at":"2016-12-05T01:19:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a49f098bc389d596b992e9fd85e0e2dc2fdee6ee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tom08/CSC450Group1/pulls/13/commits","review_comments_url":"https://api.github.com/repos/tom08/CSC450Group1/pulls/13/comments","review_comment_url":"https://api.github.com/repos/tom08/CSC450Group1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tom08/CSC450Group1/issues/13/comments","statuses_url":"https://api.github.com/repos/tom08/CSC450Group1/statuses/e74d3b60a71a6d0e44fa262e9afc16d182bada44","head":{"label":"tom08:015-error-page","ref":"015-error-page","sha":"e74d3b60a71a6d0e44fa262e9afc16d182bada44","user":{"login":"tom08","id":11857867,"avatar_url":"https://avatars.githubusercontent.com/u/11857867?v=3","gravatar_id":"","url":"https://api.github.com/users/tom08","html_url":"https://github.com/tom08","followers_url":"https://api.github.com/users/tom08/followers","following_url":"https://api.github.com/users/tom08/following{/other_user}","gists_url":"https://api.github.com/users/tom08/gists{/gist_id}","starred_url":"https://api.github.com/users/tom08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom08/subscriptions","organizations_url":"https://api.github.com/users/tom08/orgs","repos_url":"https://api.github.com/users/tom08/repos","events_url":"https://api.github.com/users/tom08/events{/privacy}","received_events_url":"https://api.github.com/users/tom08/received_events","type":"User","site_admin":false},"repo":{"id":69757434,"name":"CSC450Group1","full_name":"tom08/CSC450Group1","owner":{"login":"tom08","id":11857867,"avatar_url":"https://avatars.githubusercontent.com/u/11857867?v=3","gravatar_id":"","url":"https://api.github.com/users/tom08","html_url":"https://github.com/tom08","followers_url":"https://api.github.com/users/tom08/followers","following_url":"https://api.github.com/users/tom08/following{/other_user}","gists_url":"https://api.github.com/users/tom08/gists{/gist_id}","starred_url":"https://api.github.com/users/tom08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom08/subscriptions","organizations_url":"https://api.github.com/users/tom08/orgs","repos_url":"https://api.github.com/users/tom08/repos","events_url":"https://api.github.com/users/tom08/events{/privacy}","received_events_url":"https://api.github.com/users/tom08/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tom08/CSC450Group1","description":null,"fork":false,"url":"https://api.github.com/repos/tom08/CSC450Group1","forks_url":"https://api.github.com/repos/tom08/CSC450Group1/forks","keys_url":"https://api.github.com/repos/tom08/CSC450Group1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tom08/CSC450Group1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tom08/CSC450Group1/teams","hooks_url":"https://api.github.com/repos/tom08/CSC450Group1/hooks","issue_events_url":"https://api.github.com/repos/tom08/CSC450Group1/issues/events{/number}","events_url":"https://api.github.com/repos/tom08/CSC450Group1/events","assignees_url":"https://api.github.com/repos/tom08/CSC450Group1/assignees{/user}","branches_url":"https://api.github.com/repos/tom08/CSC450Group1/branches{/branch}","tags_url":"https://api.github.com/repos/tom08/CSC450Group1/tags","blobs_url":"https://api.github.com/repos/tom08/CSC450Group1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tom08/CSC450Group1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tom08/CSC450Group1/git/refs{/sha}","trees_url":"https://api.github.com/repos/tom08/CSC450Group1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tom08/CSC450Group1/statuses/{sha}","languages_url":"https://api.github.com/repos/tom08/CSC450Group1/languages","stargazers_url":"https://api.github.com/repos/tom08/CSC450Group1/stargazers","contributors_url":"https://api.github.com/repos/tom08/CSC450Group1/contributors","subscribers_url":"https://api.github.com/repos/tom08/CSC450Group1/subscribers","subscription_url":"https://api.github.com/repos/tom08/CSC450Group1/subscription","commits_url":"https://api.github.com/repos/tom08/CSC450Group1/commits{/sha}","git_commits_url":"https://api.github.com/repos/tom08/CSC450Group1/git/commits{/sha}","comments_url":"https://api.github.com/repos/tom08/CSC450Group1/comments{/number}","issue_comment_url":"https://api.github.com/repos/tom08/CSC450Group1/issues/comments{/number}","contents_url":"https://api.github.com/repos/tom08/CSC450Group1/contents/{+path}","compare_url":"https://api.github.com/repos/tom08/CSC450Group1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tom08/CSC450Group1/merges","archive_url":"https://api.github.com/repos/tom08/CSC450Group1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tom08/CSC450Group1/downloads","issues_url":"https://api.github.com/repos/tom08/CSC450Group1/issues{/number}","pulls_url":"https://api.github.com/repos/tom08/CSC450Group1/pulls{/number}","milestones_url":"https://api.github.com/repos/tom08/CSC450Group1/milestones{/number}","notifications_url":"https://api.github.com/repos/tom08/CSC450Group1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tom08/CSC450Group1/labels{/name}","releases_url":"https://api.github.com/repos/tom08/CSC450Group1/releases{/id}","deployments_url":"https://api.github.com/repos/tom08/CSC450Group1/deployments","created_at":"2016-10-01T18:58:59Z","updated_at":"2016-10-01T19:18:37Z","pushed_at":"2016-12-05T01:11:49Z","git_url":"git://github.com/tom08/CSC450Group1.git","ssh_url":"git@github.com:tom08/CSC450Group1.git","clone_url":"https://github.com/tom08/CSC450Group1.git","svn_url":"https://github.com/tom08/CSC450Group1","homepage":null,"size":207,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"tom08:master","ref":"master","sha":"955e23752a7bcc351e728e53b981bca00f42b512","user":{"login":"tom08","id":11857867,"avatar_url":"https://avatars.githubusercontent.com/u/11857867?v=3","gravatar_id":"","url":"https://api.github.com/users/tom08","html_url":"https://github.com/tom08","followers_url":"https://api.github.com/users/tom08/followers","following_url":"https://api.github.com/users/tom08/following{/other_user}","gists_url":"https://api.github.com/users/tom08/gists{/gist_id}","starred_url":"https://api.github.com/users/tom08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom08/subscriptions","organizations_url":"https://api.github.com/users/tom08/orgs","repos_url":"https://api.github.com/users/tom08/repos","events_url":"https://api.github.com/users/tom08/events{/privacy}","received_events_url":"https://api.github.com/users/tom08/received_events","type":"User","site_admin":false},"repo":{"id":69757434,"name":"CSC450Group1","full_name":"tom08/CSC450Group1","owner":{"login":"tom08","id":11857867,"avatar_url":"https://avatars.githubusercontent.com/u/11857867?v=3","gravatar_id":"","url":"https://api.github.com/users/tom08","html_url":"https://github.com/tom08","followers_url":"https://api.github.com/users/tom08/followers","following_url":"https://api.github.com/users/tom08/following{/other_user}","gists_url":"https://api.github.com/users/tom08/gists{/gist_id}","starred_url":"https://api.github.com/users/tom08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom08/subscriptions","organizations_url":"https://api.github.com/users/tom08/orgs","repos_url":"https://api.github.com/users/tom08/repos","events_url":"https://api.github.com/users/tom08/events{/privacy}","received_events_url":"https://api.github.com/users/tom08/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tom08/CSC450Group1","description":null,"fork":false,"url":"https://api.github.com/repos/tom08/CSC450Group1","forks_url":"https://api.github.com/repos/tom08/CSC450Group1/forks","keys_url":"https://api.github.com/repos/tom08/CSC450Group1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tom08/CSC450Group1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tom08/CSC450Group1/teams","hooks_url":"https://api.github.com/repos/tom08/CSC450Group1/hooks","issue_events_url":"https://api.github.com/repos/tom08/CSC450Group1/issues/events{/number}","events_url":"https://api.github.com/repos/tom08/CSC450Group1/events","assignees_url":"https://api.github.com/repos/tom08/CSC450Group1/assignees{/user}","branches_url":"https://api.github.com/repos/tom08/CSC450Group1/branches{/branch}","tags_url":"https://api.github.com/repos/tom08/CSC450Group1/tags","blobs_url":"https://api.github.com/repos/tom08/CSC450Group1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tom08/CSC450Group1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tom08/CSC450Group1/git/refs{/sha}","trees_url":"https://api.github.com/repos/tom08/CSC450Group1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tom08/CSC450Group1/statuses/{sha}","languages_url":"https://api.github.com/repos/tom08/CSC450Group1/languages","stargazers_url":"https://api.github.com/repos/tom08/CSC450Group1/stargazers","contributors_url":"https://api.github.com/repos/tom08/CSC450Group1/contributors","subscribers_url":"https://api.github.com/repos/tom08/CSC450Group1/subscribers","subscription_url":"https://api.github.com/repos/tom08/CSC450Group1/subscription","commits_url":"https://api.github.com/repos/tom08/CSC450Group1/commits{/sha}","git_commits_url":"https://api.github.com/repos/tom08/CSC450Group1/git/commits{/sha}","comments_url":"https://api.github.com/repos/tom08/CSC450Group1/comments{/number}","issue_comment_url":"https://api.github.com/repos/tom08/CSC450Group1/issues/comments{/number}","contents_url":"https://api.github.com/repos/tom08/CSC450Group1/contents/{+path}","compare_url":"https://api.github.com/repos/tom08/CSC450Group1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tom08/CSC450Group1/merges","archive_url":"https://api.github.com/repos/tom08/CSC450Group1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tom08/CSC450Group1/downloads","issues_url":"https://api.github.com/repos/tom08/CSC450Group1/issues{/number}","pulls_url":"https://api.github.com/repos/tom08/CSC450Group1/pulls{/number}","milestones_url":"https://api.github.com/repos/tom08/CSC450Group1/milestones{/number}","notifications_url":"https://api.github.com/repos/tom08/CSC450Group1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tom08/CSC450Group1/labels{/name}","releases_url":"https://api.github.com/repos/tom08/CSC450Group1/releases{/id}","deployments_url":"https://api.github.com/repos/tom08/CSC450Group1/deployments","created_at":"2016-10-01T18:58:59Z","updated_at":"2016-10-01T19:18:37Z","pushed_at":"2016-12-05T01:11:49Z","git_url":"git://github.com/tom08/CSC450Group1.git","ssh_url":"git@github.com:tom08/CSC450Group1.git","clone_url":"https://github.com/tom08/CSC450Group1.git","svn_url":"https://github.com/tom08/CSC450Group1","homepage":null,"size":207,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tom08/CSC450Group1/pulls/13"},"html":{"href":"https://github.com/tom08/CSC450Group1/pull/13"},"issue":{"href":"https://api.github.com/repos/tom08/CSC450Group1/issues/13"},"comments":{"href":"https://api.github.com/repos/tom08/CSC450Group1/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/tom08/CSC450Group1/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/tom08/CSC450Group1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tom08/CSC450Group1/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/tom08/CSC450Group1/statuses/e74d3b60a71a6d0e44fa262e9afc16d182bada44"}}}}
{"actor":{"display_login":"tom08"}}