github.com/khulnasoft-lab/khulnasoft@v26.0.1-0.20240328202558-330a6f959fe0+incompatible/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 }