Merge pull request #8304 from rhatdan/error

Cleanup error reporting
This commit is contained in:
OpenShift Merge Robot authored and GitHub committed 2020-11-12 22:33:25 +01:00
commit a65ecc70c2
1 file changed
+1 -1
+1 -1
View File
@@ -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
}