invalide detach keys provided
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
parent
aef8aa565f
commit
660ec32e8f
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