Skip to content

Commit

Permalink
Throw missing Exception when Desktop not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
awidesky committed May 7, 2021
1 parent eee6bc8 commit 8ecf57b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ private void disposeLoadingFrame() {
private void showNameFormatPage() {

try {
if(!Desktop.isDesktopSupported()) { }
if(!Desktop.isDesktopSupported()) { throw new IOException("Desktop.isDesktopSupported() is false"); }
Desktop.getDesktop().browse(new URI("https://github.com/ytdl-org/youtube-dl#output-template"));
} catch (IOException e) {
GUI.warning("Cannot open default web browser!", "Please visit https://github.com/ytdl-org/youtube-dl#output-template\n%e%", e);
Expand Down

0 comments on commit 8ecf57b

Please sign in to comment.