mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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:
@@ -140,8 +140,11 @@ export class MiaaComputeAndStoragePage extends DashboardPage {
|
||||
} finally {
|
||||
session?.dispose();
|
||||
}
|
||||
|
||||
await this._miaaModel.refresh();
|
||||
try {
|
||||
await this._miaaModel.refresh();
|
||||
} catch (error) {
|
||||
vscode.window.showErrorMessage(loc.refreshFailed(error));
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -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