Checking output of youtube-dl when downloading[ci skip]

This commit is contained in:
MichaelOultram 2015-08-13 13:59:24 +01:00
parent fa0dd24677
commit 4a2238571e

View file

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