X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/blobdiff_plain/3d5bf3fdb4680d213193fce1c2400dddf643f823..833bfdd4c89f51e583faf39d73e89256945a139a:/clitube.nim diff --git a/clitube.nim b/clitube.nim index aeb9953..fa202d2 100644 --- a/clitube.nim +++ b/clitube.nim @@ -20,7 +20,7 @@ type SearchResult = tuple[title: string, url: string] proc selectMediaPlayer(): string = let availablePlayers = filterIt(supportedPlayers, execProcess("which " & it).len != 0) if len(availablePlayers) == 0: - echo "Please install one of the supported media players: ", supportedPlayers + stderr.writeLine "Please install one of the supported media players: ", $supportedPlayers raise newException(OSError, "No supported media player found") else: return availablePlayers[0]