Add try catch block to model refresh in compute/storage pages (#14861)

* Add try catch block to model refresh in compute/storage pages

* spacing
This commit is contained in:
nasc17
2021-03-26 08:30:42 -07:00
committed by GitHub
parent 4b5aac57d3
commit e0f24cc268
2 changed files with 10 additions and 3 deletions

View File

@@ -217,7 +217,11 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
} finally {
session?.dispose();
}
await this._postgresModel.refresh();
try {
await this._postgresModel.refresh();
} catch (error) {
vscode.window.showErrorMessage(loc.refreshFailed(error));
}
}
);