From 6a3e9c5daaa1c4083c5548cd8673bdaa49d60bd5 Mon Sep 17 00:00:00 2001 From: "Stephen Weatherford (MSFT)" Date: Fri, 30 Mar 2018 14:22:27 -0700 Subject: [PATCH] More minor message improvements (#459) --- src/mongo/shell.ts | 6 +++--- src/mongo/tree/MongoCollectionTreeItem.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mongo/shell.ts b/src/mongo/shell.ts index 5407e4b..aabccd3 100644 --- a/src/mongo/shell.ts +++ b/src/mongo/shell.ts @@ -20,7 +20,7 @@ export class Shell { const shellProcess = cp.spawn(execPath, ['--quiet', connectionString]); return c(new Shell(shellProcess)); } catch (error) { - e(`Error while creating mongo shell with path ${execPath}: ${error}`); + e(`Error while creating mongo shell with path '${execPath}': ${error}`); } }); } @@ -64,8 +64,8 @@ export class Shell { once(this.mongoShell.stderr, 'close', result => this.onResult.fire(result)); } - async useDatabase(databse: string): Promise { - return this.exec(`use ${databse}`); + async useDatabase(database: string): Promise { + return this.exec(`use ${database}`); } async exec(script: string): Promise { diff --git a/src/mongo/tree/MongoCollectionTreeItem.ts b/src/mongo/tree/MongoCollectionTreeItem.ts index 5b1adcf..50b787e 100644 --- a/src/mongo/tree/MongoCollectionTreeItem.ts +++ b/src/mongo/tree/MongoCollectionTreeItem.ts @@ -151,7 +151,7 @@ export class MongoCollectionTreeItem implements IAzureParentTreeItem { private async drop(): Promise { await this.collection.drop(); - return `Dropped collection ${this.collection.collectionName}.`; + return `Dropped collection '${this.collection.collectionName}'.`; } private async findOne(args?: Object): Promise {