1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #22388 from fy2462/exec-add-newline

Fix bug: exec non-exist command miss a "\n"
This commit is contained in:
Brian Goff 2016-04-28 11:30:28 -04:00
commit ca611fdea2

View file

@ -110,8 +110,8 @@ func (s *containerRouter) postContainerExecStart(ctx context.Context, w http.Res
if execStartCheck.Detach { if execStartCheck.Detach {
return err return err
} }
stdout.Write([]byte(err.Error())) stdout.Write([]byte(err.Error() + "\r\n"))
logrus.Errorf("Error running exec in container: %v\n", err) logrus.Errorf("Error running exec in container: %v", err)
} }
return nil return nil
} }