{"action":"created","comment":{"url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/comments/47522152","id":47522152,"diff_hunk":"@@ -8,139 +8,114 @@ import (\n )\n \n //WIP\n-func Fetch(network *net.Network) string {\n+func Fetch(network *net.Network) (string, error) {\n \turl := \"/v1/applications/fetch\"\n \tbody, err := network.SendGetRequest(url)\n \tif err != nil {\n-\t\tfmt.Println(err)\n+\t\treturn string(body), err","path":"api/application/applications.go","position":10,"original_position":10,"commit_id":"4036386ac00f19bd3b42bf439505a72d035c9dbb","original_commit_id":"4036386ac00f19bd3b42bf439505a72d035c9dbb","user":{"login":"lloyddave","id":15086450,"avatar_url":"https://avatars.githubusercontent.com/u/15086450?v=3","gravatar_id":"","url":"https://api.github.com/users/lloyddave","html_url":"https://github.com/lloyddave","followers_url":"https://api.github.com/users/lloyddave/followers","following_url":"https://api.github.com/users/lloyddave/following{/other_user}","gists_url":"https://api.github.com/users/lloyddave/gists{/gist_id}","starred_url":"https://api.github.com/users/lloyddave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lloyddave/subscriptions","organizations_url":"https://api.github.com/users/lloyddave/orgs","repos_url":"https://api.github.com/users/lloyddave/repos","events_url":"https://api.github.com/users/lloyddave/events{/privacy}","received_events_url":"https://api.github.com/users/lloyddave/received_events","type":"User","site_admin":false},"body":"Need to be careful here, as it is likely that string var body will not have been created. Safer to just return empty string \"\".","created_at":"2015-12-14T16:48:53Z","updated_at":"2015-12-14T16:48:53Z","html_url":"https://github.com/brooklyncentral/brooklyn-cli/pull/27#discussion_r47522152","pull_request_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/comments/47522152"},"html":{"href":"https://github.com/brooklyncentral/brooklyn-cli/pull/27#discussion_r47522152"},"pull_request":{"href":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/27","id":53575681,"html_url":"https://github.com/brooklyncentral/brooklyn-cli/pull/27","diff_url":"https://github.com/brooklyncentral/brooklyn-cli/pull/27.diff","patch_url":"https://github.com/brooklyncentral/brooklyn-cli/pull/27.patch","issue_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/issues/27","number":27,"state":"open","locked":false,"title":"Make error handling more consistent","user":{"login":"geomacy","id":14142759,"avatar_url":"https://avatars.githubusercontent.com/u/14142759?v=3","gravatar_id":"","url":"https://api.github.com/users/geomacy","html_url":"https://github.com/geomacy","followers_url":"https://api.github.com/users/geomacy/followers","following_url":"https://api.github.com/users/geomacy/following{/other_user}","gists_url":"https://api.github.com/users/geomacy/gists{/gist_id}","starred_url":"https://api.github.com/users/geomacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geomacy/subscriptions","organizations_url":"https://api.github.com/users/geomacy/orgs","repos_url":"https://api.github.com/users/geomacy/repos","events_url":"https://api.github.com/users/geomacy/events{/privacy}","received_events_url":"https://api.github.com/users/geomacy/received_events","type":"User","site_admin":false},"body":"Initial changes for making error handling more consistent (send all error output to stderr).\r\n\r\nIncludes updates to \r\n- access\r\n- activity\r\n- application\r\n- catalog\r\n\r\ncommands.","created_at":"2015-12-14T15:05:02Z","updated_at":"2015-12-14T16:48:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9faa72257d541ad3e3bbf8f6373901d4745092ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/27/commits","review_comments_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/27/comments","review_comment_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/issues/27/comments","statuses_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/statuses/4036386ac00f19bd3b42bf439505a72d035c9dbb","head":{"label":"brooklyncentral:make-error-handling-more-consistent","ref":"make-error-handling-more-consistent","sha":"4036386ac00f19bd3b42bf439505a72d035c9dbb","user":{"login":"brooklyncentral","id":1587357,"avatar_url":"https://avatars.githubusercontent.com/u/1587357?v=3","gravatar_id":"","url":"https://api.github.com/users/brooklyncentral","html_url":"https://github.com/brooklyncentral","followers_url":"https://api.github.com/users/brooklyncentral/followers","following_url":"https://api.github.com/users/brooklyncentral/following{/other_user}","gists_url":"https://api.github.com/users/brooklyncentral/gists{/gist_id}","starred_url":"https://api.github.com/users/brooklyncentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brooklyncentral/subscriptions","organizations_url":"https://api.github.com/users/brooklyncentral/orgs","repos_url":"https://api.github.com/users/brooklyncentral/repos","events_url":"https://api.github.com/users/brooklyncentral/events{/privacy}","received_events_url":"https://api.github.com/users/brooklyncentral/received_events","type":"Organization","site_admin":false},"repo":{"id":33272064,"name":"brooklyn-cli","full_name":"brooklyncentral/brooklyn-cli","owner":{"login":"brooklyncentral","id":1587357,"avatar_url":"https://avatars.githubusercontent.com/u/1587357?v=3","gravatar_id":"","url":"https://api.github.com/users/brooklyncentral","html_url":"https://github.com/brooklyncentral","followers_url":"https://api.github.com/users/brooklyncentral/followers","following_url":"https://api.github.com/users/brooklyncentral/following{/other_user}","gists_url":"https://api.github.com/users/brooklyncentral/gists{/gist_id}","starred_url":"https://api.github.com/users/brooklyncentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brooklyncentral/subscriptions","organizations_url":"https://api.github.com/users/brooklyncentral/orgs","repos_url":"https://api.github.com/users/brooklyncentral/repos","events_url":"https://api.github.com/users/brooklyncentral/events{/privacy}","received_events_url":"https://api.github.com/users/brooklyncentral/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brooklyncentral/brooklyn-cli","description":"Go CLI client for Brooklyn REST API","fork":false,"url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli","forks_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/forks","keys_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/teams","hooks_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/hooks","issue_events_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/issues/events{/number}","events_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/events","assignees_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/assignees{/user}","branches_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/branches{/branch}","tags_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/tags","blobs_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/languages","stargazers_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/stargazers","contributors_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/contributors","subscribers_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/subscribers","subscription_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/subscription","commits_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/contents/{+path}","compare_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/merges","archive_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/downloads","issues_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/issues{/number}","pulls_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/labels{/name}","releases_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/releases{/id}","created_at":"2015-04-01T20:45:53Z","updated_at":"2015-10-20T13:43:48Z","pushed_at":"2015-12-14T16:35:26Z","git_url":"git://github.com/brooklyncentral/brooklyn-cli.git","ssh_url":"git@github.com:brooklyncentral/brooklyn-cli.git","clone_url":"https://github.com/brooklyncentral/brooklyn-cli.git","svn_url":"https://github.com/brooklyncentral/brooklyn-cli","homepage":null,"size":175,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"brooklyncentral:master","ref":"master","sha":"613d42a624c5ea58813fbdb377e5910e984b0744","user":{"login":"brooklyncentral","id":1587357,"avatar_url":"https://avatars.githubusercontent.com/u/1587357?v=3","gravatar_id":"","url":"https://api.github.com/users/brooklyncentral","html_url":"https://github.com/brooklyncentral","followers_url":"https://api.github.com/users/brooklyncentral/followers","following_url":"https://api.github.com/users/brooklyncentral/following{/other_user}","gists_url":"https://api.github.com/users/brooklyncentral/gists{/gist_id}","starred_url":"https://api.github.com/users/brooklyncentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brooklyncentral/subscriptions","organizations_url":"https://api.github.com/users/brooklyncentral/orgs","repos_url":"https://api.github.com/users/brooklyncentral/repos","events_url":"https://api.github.com/users/brooklyncentral/events{/privacy}","received_events_url":"https://api.github.com/users/brooklyncentral/received_events","type":"Organization","site_admin":false},"repo":{"id":33272064,"name":"brooklyn-cli","full_name":"brooklyncentral/brooklyn-cli","owner":{"login":"brooklyncentral","id":1587357,"avatar_url":"https://avatars.githubusercontent.com/u/1587357?v=3","gravatar_id":"","url":"https://api.github.com/users/brooklyncentral","html_url":"https://github.com/brooklyncentral","followers_url":"https://api.github.com/users/brooklyncentral/followers","following_url":"https://api.github.com/users/brooklyncentral/following{/other_user}","gists_url":"https://api.github.com/users/brooklyncentral/gists{/gist_id}","starred_url":"https://api.github.com/users/brooklyncentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brooklyncentral/subscriptions","organizations_url":"https://api.github.com/users/brooklyncentral/orgs","repos_url":"https://api.github.com/users/brooklyncentral/repos","events_url":"https://api.github.com/users/brooklyncentral/events{/privacy}","received_events_url":"https://api.github.com/users/brooklyncentral/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brooklyncentral/brooklyn-cli","description":"Go CLI client for Brooklyn REST API","fork":false,"url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli","forks_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/forks","keys_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/teams","hooks_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/hooks","issue_events_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/issues/events{/number}","events_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/events","assignees_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/assignees{/user}","branches_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/branches{/branch}","tags_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/tags","blobs_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/languages","stargazers_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/stargazers","contributors_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/contributors","subscribers_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/subscribers","subscription_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/subscription","commits_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/contents/{+path}","compare_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/merges","archive_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/downloads","issues_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/issues{/number}","pulls_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/labels{/name}","releases_url":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/releases{/id}","created_at":"2015-04-01T20:45:53Z","updated_at":"2015-10-20T13:43:48Z","pushed_at":"2015-12-14T16:35:26Z","git_url":"git://github.com/brooklyncentral/brooklyn-cli.git","ssh_url":"git@github.com:brooklyncentral/brooklyn-cli.git","clone_url":"https://github.com/brooklyncentral/brooklyn-cli.git","svn_url":"https://github.com/brooklyncentral/brooklyn-cli","homepage":null,"size":175,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/27"},"html":{"href":"https://github.com/brooklyncentral/brooklyn-cli/pull/27"},"issue":{"href":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/issues/27"},"comments":{"href":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/brooklyncentral/brooklyn-cli/statuses/4036386ac00f19bd3b42bf439505a72d035c9dbb"}}}}