mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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 {
|
} finally {
|
||||||
session?.dispose();
|
session?.dispose();
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
await this._miaaModel.refresh();
|
await this._miaaModel.refresh();
|
||||||
|
} catch (error) {
|
||||||
|
vscode.window.showErrorMessage(loc.refreshFailed(error));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -217,7 +217,11 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
|||||||
} finally {
|
} finally {
|
||||||
session?.dispose();
|
session?.dispose();
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
await this._postgresModel.refresh();
|
await this._postgresModel.refresh();
|
||||||
|
} catch (error) {
|
||||||
|
vscode.window.showErrorMessage(loc.refreshFailed(error));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user