github.com/willmadison/cli@v6.40.1-0.20181018160101-29d5937903ff+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 }