Only throw if releaseNotesUrl doesn't exist (#11295)

This commit is contained in:
Charles Gagnon
2020-07-10 12:31:55 -07:00
committed by GitHub
parent 3e860692a2
commit 0835d3ed0f

View File

@@ -55,8 +55,9 @@ export class OpenLatestReleaseNotesInBrowserAction extends Action {
if (this.productService.releaseNotesUrl) {
const uri = URI.parse(this.productService.releaseNotesUrl);
await this.openerService.open(uri);
} else { //{{SQL CARBON EDIT}}
throw new Error(nls.localize('update.noReleaseNotesOnline', "This version of {0} does not have release notes online", this.productService.nameLong));
}
throw new Error('This version of Visual Studio Code does not have release notes online');
}
}