github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/api/cloudcontroller/ccerror/job_failed_error.go (about)

     1  package ccerror
     2  
     3  import "fmt"
     4  
     5  // JobFailedError represents a failed Cloud Controller Job. It wraps the error
     6  // returned back from the Cloud Controller.
     7  type JobFailedError struct {
     8  	JobGUID string
     9  	Message string
    10  }
    11  
    12  func (e JobFailedError) Error() string {
    13  	return fmt.Sprintf("Job (%s) failed: %s", e.JobGUID, e.Message)
    14  }