fix canceled by stopper error
This commit is contained in:
parent
a93c2c4538
commit
de798ade36
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ func runCmd(cmd *exec.Cmd, stopChan stop.Chan) ([]string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Prefix("failed to kill command after stopper cancellation", err)
|
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:
|
case err := <-done:
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Prefix("youtube-dl "+strings.Join(cmd.Args, " ")+" ["+string(errorLog)+"]", err)
|
return nil, errors.Prefix("youtube-dl "+strings.Join(cmd.Args, " ")+" ["+string(errorLog)+"]", err)
|
||||||
|
|
Loading…
Reference in a new issue