{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/comments/226047175","pull_request_review_id":165776375,"id":226047175,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjA0NzE3NQ==","diff_hunk":"@@ -73,7 +73,14 @@ export class MongoAccountTreeItem extends AzureParentTreeItem<IMongoTreeRoot> {\n             return databases\n                 .filter((database: IDatabaseInfo) => !(database.name && database.name.toLowerCase() === \"admin\" && database.empty)) // Filter out the 'admin' database if it's empty\n                 .map(database => new MongoDatabaseTreeItem(this, database.name, this.connectionString));\n-        } finally {\n+        } catch (error) {\n+            let message = parseError(error).message;\n+            if (this._root.isEmulator && message.includes(\"ECONNREFUSED\")) {\n+                error.message = \"Unable to reach emulator. Please ensure it is started and writing to the appropriate port. Then try again.\";","path":"src/mongo/tree/MongoAccountTreeItem.ts","position":17,"original_position":17,"commit_id":"2d22abd9356bdf82dbab2f43824bdbe78bad7480","original_commit_id":"2d22abd9356bdf82dbab2f43824bdbe78bad7480","user":{"login":"StephenWeatherford","id":6913354,"node_id":"MDQ6VXNlcjY5MTMzNTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6913354?v=4","gravatar_id":"","url":"https://api.github.com/users/StephenWeatherford","html_url":"https://github.com/StephenWeatherford","followers_url":"https://api.github.com/users/StephenWeatherford/followers","following_url":"https://api.github.com/users/StephenWeatherford/following{/other_user}","gists_url":"https://api.github.com/users/StephenWeatherford/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenWeatherford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenWeatherford/subscriptions","organizations_url":"https://api.github.com/users/StephenWeatherford/orgs","repos_url":"https://api.github.com/users/StephenWeatherford/repos","events_url":"https://api.github.com/users/StephenWeatherford/events{/privacy}","received_events_url":"https://api.github.com/users/StephenWeatherford/received_events","type":"User","site_admin":false},"body":"Still not really happy with this approach, although I understand the logic. If you're going to use it, at least add the original message to the end, thanks.\r\n\r\nIdeally we'd have a common util to do this properly.","created_at":"2018-10-17T18:31:25Z","updated_at":"2018-10-17T18:31:25Z","html_url":"https://github.com/Microsoft/vscode-cosmosdb/pull/880#discussion_r226047175","pull_request_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/880","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/comments/226047175"},"html":{"href":"https://github.com/Microsoft/vscode-cosmosdb/pull/880#discussion_r226047175"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/880"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/880","id":223444557,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNDQ0NTU3","html_url":"https://github.com/Microsoft/vscode-cosmosdb/pull/880","diff_url":"https://github.com/Microsoft/vscode-cosmosdb/pull/880.diff","patch_url":"https://github.com/Microsoft/vscode-cosmosdb/pull/880.patch","issue_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/issues/880","number":880,"state":"open","locked":false,"title":"Inform user to start emulator on timeout(SQL) or specific error(Mongo)","user":{"login":"PrashanthCorp","id":30420973,"node_id":"MDQ6VXNlcjMwNDIwOTcz","avatar_url":"https://avatars3.githubusercontent.com/u/30420973?v=4","gravatar_id":"","url":"https://api.github.com/users/PrashanthCorp","html_url":"https://github.com/PrashanthCorp","followers_url":"https://api.github.com/users/PrashanthCorp/followers","following_url":"https://api.github.com/users/PrashanthCorp/following{/other_user}","gists_url":"https://api.github.com/users/PrashanthCorp/gists{/gist_id}","starred_url":"https://api.github.com/users/PrashanthCorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrashanthCorp/subscriptions","organizations_url":"https://api.github.com/users/PrashanthCorp/orgs","repos_url":"https://api.github.com/users/PrashanthCorp/repos","events_url":"https://api.github.com/users/PrashanthCorp/events{/privacy}","received_events_url":"https://api.github.com/users/PrashanthCorp/received_events","type":"User","site_admin":false},"body":"Fixes #706 \r\nFixes #873 ","created_at":"2018-10-17T01:43:45Z","updated_at":"2018-10-17T18:31:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac8892fdc6f7a80e35a97db9f77a11e01694b860","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/880/commits","review_comments_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/880/comments","review_comment_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/issues/880/comments","statuses_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/statuses/2d22abd9356bdf82dbab2f43824bdbe78bad7480","head":{"label":"Microsoft:ps/706","ref":"ps/706","sha":"2d22abd9356bdf82dbab2f43824bdbe78bad7480","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":100298835,"node_id":"MDEwOlJlcG9zaXRvcnkxMDAyOTg4MzU=","name":"vscode-cosmosdb","full_name":"Microsoft/vscode-cosmosdb","private":false,"owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Microsoft/vscode-cosmosdb","description":"VS Code extension for Azure Cosmos DB","fork":false,"url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb","forks_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/forks","keys_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/teams","hooks_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/events","assignees_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/tags","blobs_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/subscription","commits_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/merges","archive_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/downloads","issues_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/deployments","created_at":"2017-08-14T18:43:46Z","updated_at":"2018-10-17T17:19:17Z","pushed_at":"2018-10-17T18:23:37Z","git_url":"git://github.com/Microsoft/vscode-cosmosdb.git","ssh_url":"git@github.com:Microsoft/vscode-cosmosdb.git","clone_url":"https://github.com/Microsoft/vscode-cosmosdb.git","svn_url":"https://github.com/Microsoft/vscode-cosmosdb","homepage":"https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-cosmosdb","size":17382,"stargazers_count":64,"watchers_count":64,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":95,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":18,"open_issues":95,"watchers":64,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"f74b795d7815e6f3846270761efd60161efda971","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":100298835,"node_id":"MDEwOlJlcG9zaXRvcnkxMDAyOTg4MzU=","name":"vscode-cosmosdb","full_name":"Microsoft/vscode-cosmosdb","private":false,"owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Microsoft/vscode-cosmosdb","description":"VS Code extension for Azure Cosmos DB","fork":false,"url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb","forks_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/forks","keys_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/teams","hooks_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/events","assignees_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/tags","blobs_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/subscription","commits_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/merges","archive_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/downloads","issues_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/deployments","created_at":"2017-08-14T18:43:46Z","updated_at":"2018-10-17T17:19:17Z","pushed_at":"2018-10-17T18:23:37Z","git_url":"git://github.com/Microsoft/vscode-cosmosdb.git","ssh_url":"git@github.com:Microsoft/vscode-cosmosdb.git","clone_url":"https://github.com/Microsoft/vscode-cosmosdb.git","svn_url":"https://github.com/Microsoft/vscode-cosmosdb","homepage":"https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-cosmosdb","size":17382,"stargazers_count":64,"watchers_count":64,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":95,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":18,"open_issues":95,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/880"},"html":{"href":"https://github.com/Microsoft/vscode-cosmosdb/pull/880"},"issue":{"href":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/issues/880"},"comments":{"href":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/issues/880/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/880/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/pulls/880/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/vscode-cosmosdb/statuses/2d22abd9356bdf82dbab2f43824bdbe78bad7480"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"StephenWeatherford"}}