Skip to content

Commit 5c7e862

Browse files
authored
Merge pull request microsoft#102149 from Charles-Gagnon/patch-1
Only throw error if releaseNotesUrl doesn't exist
2 parents 9749cee + ef5ef30 commit 5c7e862

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/vs/workbench/contrib/update/browser

src/vs/workbench/contrib/update/browser/update.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ export class OpenLatestReleaseNotesInBrowserAction extends Action {
5555
if (this.productService.releaseNotesUrl) {
5656
const uri = URI.parse(this.productService.releaseNotesUrl);
5757
await this.openerService.open(uri);
58+
} else {
59+
throw new Error(nls.localize('update.noReleaseNotesOnline', "This version of {0} does not have release notes online", this.productService.nameLong));
5860
}
59-
throw new Error('This version of Visual Studio Code does not have release notes online');
6061
}
6162
}
6263

0 commit comments

Comments
 (0)