summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-11-12 22:33:25 +0100
committerGitHub <noreply@github.com>2020-11-12 22:33:25 +0100
commita65ecc70c21eb5eef7d7a6b70cc1f90e577bb72e (patch)
tree693e1f081001f8dfeff1b76216d3063871942b18
parent2e474df2e115e8c9f0c80c3276820f9ca0a75608 (diff)
parentf3648b4ae84ea843fb3319a2c6dc20f3a4adff35 (diff)
downloadpodman-a65ecc70c21eb5eef7d7a6b70cc1f90e577bb72e.tar.gz
podman-a65ecc70c21eb5eef7d7a6b70cc1f90e577bb72e.tar.bz2
podman-a65ecc70c21eb5eef7d7a6b70cc1f90e577bb72e.zip
Merge pull request #8304 from rhatdan/error
Cleanup error reporting
-rw-r--r--libpod/networking_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/networking_linux.go b/libpod/networking_linux.go
index 1a7740085..fed90cfc3 100644
--- a/libpod/networking_linux.go
+++ b/libpod/networking_linux.go
@@ -564,7 +564,7 @@ func (r *Runtime) setupRootlessPortMappingViaRLK(ctr *Container, netnsPath strin
if stdoutStr != "" {
// err contains full debug log and too verbose, so return stdoutStr
logrus.Debug(err)
- return errors.Errorf("failed to expose ports via rootlessport: %q", stdoutStr)
+ return errors.Errorf("rootlessport " + strings.TrimSuffix(stdoutStr, "\n"))
}
return err
}