fix canceled by stopper error

This commit is contained in:
Niko Storni 2020-10-07 03:40:19 +02:00
parent a93c2c4538
commit de798ade36

View file

@ -332,7 +332,7 @@ func runCmd(cmd *exec.Cmd, stopChan stop.Chan) ([]string, error) {
if err != nil {
return nil, errors.Prefix("failed to kill command after stopper cancellation", err)
}
return nil, errors.Err("canceled by stopper")
return nil, errors.Err("interrupted by user")
case err := <-done:
if err != nil {
return nil, errors.Prefix("youtube-dl "+strings.Join(cmd.Args, " ")+" ["+string(errorLog)+"]", err)