aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/mattn/go-shellwords/util_posix.go
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2021-02-03 13:18:21 +0000
committerDaniel J Walsh <dwalsh@redhat.com>2021-02-03 09:10:07 -0500
commitebc42f508624637c1c491211a860506d450b8ade (patch)
treee216c8aa9d060bf5eb54d2eb05652d987a3793d7 /vendor/github.com/mattn/go-shellwords/util_posix.go
parentd1e0afdd47c1868ce0d22e48ae9b0b9d89ba6274 (diff)
downloadpodman-ebc42f508624637c1c491211a860506d450b8ade.tar.gz
podman-ebc42f508624637c1c491211a860506d450b8ade.tar.bz2
podman-ebc42f508624637c1c491211a860506d450b8ade.zip
Bump github.com/containers/storage from 1.24.5 to 1.25.0
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.24.5 to 1.25.0. - [Release notes](https://github.com/containers/storage/releases) - [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md) - [Commits](https://github.com/containers/storage/compare/v1.24.5...v1.25.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/mattn/go-shellwords/util_posix.go')
-rw-r--r--vendor/github.com/mattn/go-shellwords/util_posix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/mattn/go-shellwords/util_posix.go b/vendor/github.com/mattn/go-shellwords/util_posix.go
index 988fc9ed2..b56a90120 100644
--- a/vendor/github.com/mattn/go-shellwords/util_posix.go
+++ b/vendor/github.com/mattn/go-shellwords/util_posix.go
@@ -3,7 +3,7 @@
package shellwords
import (
- "errors"
+ "fmt"
"os"
"os/exec"
"strings"
@@ -23,7 +23,7 @@ func shellRun(line, dir string) (string, error) {
if eerr, ok := err.(*exec.ExitError); ok {
b = eerr.Stderr
}
- return "", errors.New(err.Error() + ":" + string(b))
+ return "", fmt.Errorf("%s: %w", string(b), err)
}
return strings.TrimSpace(string(b)), nil
}