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

     1  package translatableerror
     2  
     3  type AppNotFoundInManifestError struct {
     4  	Name string
     5  }
     6  
     7  func (AppNotFoundInManifestError) Error() string {
     8  	return "Could not find app named '{{.AppName}}' in manifest"
     9  }
    10  
    11  func (e AppNotFoundInManifestError) Translate(translate func(string, ...interface{}) string) string {
    12  	return translate(e.Error(), map[string]interface{}{
    13  		"AppName": e.Name,
    14  	})
    15  }