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

     1  package translatableerror
     2  
     3  type EmptyDirectoryError struct {
     4  	Path string
     5  }
     6  
     7  func (e EmptyDirectoryError) Error() string {
     8  	return "No app files found in '{{.Path}}'"
     9  }
    10  
    11  func (e EmptyDirectoryError) Translate(translate func(string, ...interface{}) string) string {
    12  	return translate(e.Error(), map[string]interface{}{
    13  		"Path": e.Path,
    14  	})
    15  }