Skip to content

Commit 8bf38bb

Browse files
Only throw error if releaseNotesUrl doesn't exist
1 parent 7202614 commit 8bf38bb

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
@@ -54,8 +54,9 @@ export class OpenLatestReleaseNotesInBrowserAction extends Action {
5454
if (this.productService.releaseNotesUrl) {
5555
const uri = URI.parse(this.productService.releaseNotesUrl);
5656
await this.openerService.open(uri);
57+
} else {
58+
throw new Error('This version of Visual Studio Code does not have release notes online');
5759
}
58-
throw new Error('This version of Visual Studio Code does not have release notes online');
5960
}
6061
}
6162

0 commit comments

Comments
 (0)