Skip to content

Commit

Permalink
Merge pull request containers#8304 from rhatdan/error
Browse files Browse the repository at this point in the history
Cleanup error reporting
  • Loading branch information
openshift-merge-robot authored Nov 12, 2020
2 parents 2e474df + f3648b4 commit a65ecc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/networking_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a65ecc7

Please sign in to comment.