Clean importer startup (#2197)

* Cleans up issues from: https://github.com/Microsoft/sqlopsstudio/issues/2183
This commit is contained in:
Amir Ali Omidi
2018-08-09 14:34:17 -07:00
committed by GitHub
parent 7089e2299a
commit 5fb9b8ccd3
5 changed files with 4 additions and 9 deletions

View File

@@ -67,7 +67,7 @@ export class ServiceClient {
resolve(client);
}, e => {
Telemetry.sendTelemetryEvent('ServiceInitializingFailed');
vscode.window.showErrorMessage(localize('serviceStartFailed', 'Failed to start Scale Out Data service:{0}', e));
vscode.window.showErrorMessage(localize('flatFileImport.serviceStartFailed', 'Failed to start Import service{0}', e));
// Just resolve to avoid unhandled promise. We show the error to the user.
resolve(undefined);
});

View File

@@ -33,10 +33,9 @@ export class FlatFileWizard {
let pages: Map<number, ImportPage> = new Map<number, ImportPage>();
// TODO localize this
let connections = await sqlops.connection.getActiveConnections();
if (!connections || connections.length === 0) {
vscode.window.showErrorMessage('Please connect to a server before using this wizard.');
vscode.window.showErrorMessage(localize('import.needConnection', 'Please connect to a server before using this wizard.'));
return;
}