More minor message improvements (#459)
This commit is contained in:
Родитель
63f5828855
Коммит
6a3e9c5daa
|
@ -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<string> {
|
||||
return this.exec(`use ${databse}`);
|
||||
async useDatabase(database: string): Promise<string> {
|
||||
return this.exec(`use ${database}`);
|
||||
}
|
||||
|
||||
async exec(script: string): Promise<string> {
|
||||
|
|
|
@ -151,7 +151,7 @@ export class MongoCollectionTreeItem implements IAzureParentTreeItem {
|
|||
|
||||
private async drop(): Promise<string> {
|
||||
await this.collection.drop();
|
||||
return `Dropped collection ${this.collection.collectionName}.`;
|
||||
return `Dropped collection '${this.collection.collectionName}'.`;
|
||||
}
|
||||
|
||||
private async findOne(args?: Object): Promise<string> {
|
||||
|
|
Загрузка…
Ссылка в новой задаче