github.com/circular-dark/docker@v1.7.0/api/client/client.go (about)

     1  // Package client provides a command-line interface for Docker.
     2  //
     3  // Run "docker help SUBCOMMAND" or "docker SUBCOMMAND --help" to see more information on any Docker subcommand, including the full list of options supported for the subcommand.
     4  // See https://docs.docker.com/installation/ for instructions on installing Docker.
     5  package client
     6  
     7  import "fmt"
     8  
     9  // An StatusError reports an unsuccessful exit by a command.
    10  type StatusError struct {
    11  	Status     string
    12  	StatusCode int
    13  }
    14  
    15  func (e StatusError) Error() string {
    16  	return fmt.Sprintf("Status: %s, Code: %d", e.Status, e.StatusCode)
    17  }