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.") } }