summaryrefslogtreecommitdiff
path: root/cmd/podman/attach.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-02-12 13:11:07 -0500
committerMatthew Heon <mheon@redhat.com>2019-02-12 13:11:07 -0500
commit28ee842b769b5ac4ff9a99a6c21fc66a4d011b9b (patch)
tree0322715393639eae77096f96cf540a6da8b92c5a /cmd/podman/attach.go
parent19a03976f73d21a821a07ae5f24250a4ceaee33a (diff)
downloadpodman-28ee842b769b5ac4ff9a99a6c21fc66a4d011b9b.tar.gz
podman-28ee842b769b5ac4ff9a99a6c21fc66a4d011b9b.tar.bz2
podman-28ee842b769b5ac4ff9a99a6c21fc66a4d011b9b.zip
Address review comments on #2319
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'cmd/podman/attach.go')
-rw-r--r--cmd/podman/attach.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/attach.go b/cmd/podman/attach.go
index 8e760582d..ed175bdf4 100644
--- a/cmd/podman/attach.go
+++ b/cmd/podman/attach.go
@@ -74,7 +74,7 @@ func attachCmd(c *cliconfig.AttachValues) error {
inputStream = nil
}
- if err := startAttachCtr(ctr, os.Stdout, os.Stderr, inputStream, c.DetachKeys, c.SigProxy, false); err != nil && err != libpod.ErrDetach {
+ if err := startAttachCtr(ctr, os.Stdout, os.Stderr, inputStream, c.DetachKeys, c.SigProxy, false); err != nil && errors.Cause(err) != libpod.ErrDetach {
return errors.Wrapf(err, "error attaching to container %s", ctr.ID())
}