mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 17:24:01 -05:00
Fix for dacfx wizard if user doesn't have access to master db (#9362)
* fix for if user doesn't have access to master db * add console.warn with error
This commit is contained in:
@@ -132,7 +132,14 @@ export abstract class DacFxConfigPage extends BasePage {
|
||||
return false;
|
||||
}
|
||||
|
||||
let values = await this.getDatabaseValues();
|
||||
let values: string[];
|
||||
try {
|
||||
values = await this.getDatabaseValues();
|
||||
} catch (e) {
|
||||
// if the user doesn't have access to master, just set the database to the one the current connection is to
|
||||
values = [this.model.server.databaseName];
|
||||
console.warn(e);
|
||||
}
|
||||
|
||||
// only update values and regenerate filepath if this is the first time and database isn't set yet
|
||||
if (this.model.database !== values[0]) {
|
||||
|
||||
Reference in New Issue
Block a user