load publish profile sqlcmd "value" tag and throw error if not loaded correctly (#11615)

* load publish profile sqlcmd "value" tag and throw error if not loaded correctly

* moved the read profile function to utils
This commit is contained in:
Udeesha Gautam
2020-08-03 14:16:00 -07:00
committed by GitHub
parent 9d730bd0b5
commit fbbb9ce529
7 changed files with 24 additions and 29 deletions

View File

@@ -231,9 +231,15 @@ export class ProjectsController {
}
public async readPublishProfileCallback(profileUri: vscode.Uri): Promise<PublishProfile> {
const dacFxService = await this.getDaxFxService();
const profile = await load(profileUri, dacFxService);
return profile;
try {
const dacFxService = await this.getDaxFxService();
const profile = await load(profileUri, dacFxService);
return profile;
}
catch (e) {
vscode.window.showErrorMessage(constants.profileReadError);
throw e;
}
}
public async schemaCompare(treeNode: BaseProjectTreeItem): Promise<void> {