github.com/cloudfoundry/cli@v7.1.0+incompatible/command/translatableerror/application_not_started_error.go (about)

     1  package translatableerror
     2  
     3  type ApplicationNotStartedError struct {
     4  	Name string
     5  }
     6  
     7  func (ApplicationNotStartedError) Error() string {
     8  	return "Application '{{.AppName}}' is not in the STARTED state"
     9  }
    10  
    11  func (e ApplicationNotStartedError) Translate(translate func(string, ...interface{}) string) string {
    12  	return translate(e.Error(), map[string]interface{}{
    13  		"AppName": e.Name,
    14  	})
    15  }