mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 17:23:35 -05:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user