github.com/tonistiigi/docker@v0.10.1-0.20240229224939-974013b0dc6a/cmd/dockerd/error.go (about) 1 package main 2 3 import ( 4 "fmt" 5 ) 6 7 // StatusError reports an unsuccessful exit by a command. 8 type StatusError struct { 9 Status string 10 StatusCode int 11 } 12 13 func (e StatusError) Error() string { 14 return fmt.Sprintf("Status: %s, Code: %d", e.Status, e.StatusCode) 15 }