github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+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 }