github.com/Thanhphan1147/cloudfoundry-cli@v7.1.0+incompatible/command/translatableerror/job_failed_error.go (about) 1 package translatableerror 2 3 type JobFailedError struct { 4 JobGUID string 5 Message string 6 } 7 8 func (JobFailedError) Error() string { 9 return "Job ({{.JobGUID}}) failed: {{.Message}}" 10 } 11 12 func (e JobFailedError) Translate(translate func(string, ...interface{}) string) string { 13 return translate(e.Error(), map[string]interface{}{ 14 "Message": e.Message, 15 "JobGUID": e.JobGUID, 16 }) 17 }