mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Allows using daemon/internal packages when creating dockerd Signed-off-by: Derek McGowan <derek@mcg.dev>
16 lines
266 B
Go
16 lines
266 B
Go
package command
|
|
|
|
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)
|
|
}
|