github.com/LukasHeimann/cloudfoundrycli/v8@v8.4.4/command/translatableerror/job_failed_no_error.go (about)

     1  package translatableerror
     2  
     3  // RevisionAmbiguousError is returned when multiple revisions with the same
     4  // version are returned
     5  type JobFailedNoErrorError struct {
     6  	JobGUID string
     7  }
     8  
     9  func (e JobFailedNoErrorError) Error() string {
    10  	return "Job {{.JobGUID}} failed with no error. This is unexpected, contact your operator for details."
    11  }
    12  
    13  func (e JobFailedNoErrorError) Translate(translate func(string, ...interface{}) string) string {
    14  	return translate(e.Error(), map[string]interface{}{
    15  		"JobGUID": e.JobGUID,
    16  	})
    17  }