mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 13:37:08 +08:00
vendor: github.com/docker/docker, docker/cli v28.0.1
diffs: - https://github.com/docker/docker/compare/v28.0.0...v28.0.1 - https://github.com/docker/cli/compare/v28.0.0...v28.0.1 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
8
vendor/github.com/docker/cli/cli/error.go
generated
vendored
8
vendor/github.com/docker/cli/cli/error.go
generated
vendored
@ -1,9 +1,5 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
// StatusError reports an unsuccessful exit by a command.
|
||||
type StatusError struct {
|
||||
Cause error
|
||||
@ -21,7 +17,9 @@ func (e StatusError) Error() string {
|
||||
if e.Cause != nil {
|
||||
return e.Cause.Error()
|
||||
}
|
||||
return "exit status " + strconv.Itoa(e.StatusCode)
|
||||
// we don't want to set a default message here,
|
||||
// some commands might want to be explicit about the error message
|
||||
return ""
|
||||
}
|
||||
|
||||
func (e StatusError) Unwrap() error {
|
||||
|
Reference in New Issue
Block a user