From 4a2238571e1353e71eca3402de7ee0da482845ee Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Thu, 13 Aug 2015 13:59:24 +0100 Subject: [PATCH] Checking output of youtube-dl when downloading[ci skip] --- youtube_dl.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl.go b/youtube_dl.go index cd77416..81373ec 100644 --- a/youtube_dl.go +++ b/youtube_dl.go @@ -52,7 +52,8 @@ func (dl *YouTubeDLSong) Download() error { for s := range cmd.Args { Verbose("youtube-dl args: " + cmd.Args[s]) } - Verbose(string(cmd.CombinedOutput())) + output, _ := cmd.CombinedOutput() + Verbose(string(output)) return errors.New("Song download failed.") } }