github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/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 }