moby/cmd/dockerd/error.go

16 lines
263 B
Go
Raw Normal View History

package main
import (
"fmt"
)
// StatusError reports an unsuccessful exit by a command.
type StatusError struct {
Status string
StatusCode int
}
func (e StatusError) Error() string {
return fmt.Sprintf("Status: %s, Code: %d", e.Status, e.StatusCode)
}