mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #31211 from lixiaobing10051267/masterAttach
invalide detach keys provided
This commit is contained in:
commit
ffc70d2f0c
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ func (daemon *Daemon) ContainerAttach(prefixOrName string, c *backend.ContainerA
|
|||
if c.DetachKeys != "" {
|
||||
keys, err = term.ToBytes(c.DetachKeys)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Invalid escape keys (%s) provided", c.DetachKeys)
|
||||
return fmt.Errorf("Invalid detach keys (%s) provided", c.DetachKeys)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ func (s *DockerSuite) TestRunAttachDetachFromInvalidFlag(c *check.C) {
|
|||
c.Fatal(err)
|
||||
}
|
||||
// it should print a warning to indicate the detach key flag is invalid
|
||||
errStr := "Invalid escape keys (ctrl-A,a) provided"
|
||||
errStr := "Invalid detach keys (ctrl-A,a) provided"
|
||||
c.Assert(strings.TrimSpace(out), checker.Equals, errStr)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue