From 833bfdd4c89f51e583faf39d73e89256945a139a Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Sun, 1 Dec 2019 12:43:50 +0530 Subject: [PATCH] Use stderr.writeLine to print error messages Signed-off-by: Joseph Nuthalapati --- clitube.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.43.0