github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/command/translatableerror/job_timeout_error.go (about) 1 package translatableerror 2 3 import "time" 4 5 type JobTimeoutError struct { 6 JobGUID string 7 Timeout time.Duration 8 } 9 10 func (JobTimeoutError) Error() string { 11 return "Job ({{.JobGUID}}) polling timeout has been reached. The operation may still be running on the CF instance. Your CF operator may have more information." 12 } 13 14 func (e JobTimeoutError) Translate(translate func(string, ...interface{}) string) string { 15 return translate(e.Error(), map[string]interface{}{ 16 "JobGUID": e.JobGUID, 17 }) 18 }