github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/command/translatableerror/manifest_creation_error.go (about)

     1  package translatableerror
     2  
     3  type ManifestCreationError struct {
     4  	Err error
     5  }
     6  
     7  func (ManifestCreationError) Error() string {
     8  	return "Error creating manifest file: {{.Error}}"
     9  }
    10  
    11  func (e ManifestCreationError) Translate(translate func(string, ...interface{}) string) string {
    12  	return translate(e.Error(), map[string]interface{}{
    13  		"Error": e.Err,
    14  	})
    15  }