X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/blobdiff_plain/3d5bf3fdb4680d213193fce1c2400dddf643f823..a6c167a7715590cc60cc71f86c0f6c0fa639fee9:/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]