github.com/orange-cloudfoundry/cli@v7.1.0+incompatible/command/translatableerror/empty_buildpack_directory_error.go (about) 1 package translatableerror 2 3 type EmptyBuildpackDirectoryError struct { 4 Path string 5 } 6 7 func (EmptyBuildpackDirectoryError) Error() string { 8 return "The specified path '{{.Path}}' cannot be an empty directory." 9 } 10 11 func (e EmptyBuildpackDirectoryError) Translate(translate func(string, ...interface{}) string) string { 12 return translate(e.Error(), map[string]interface{}{ 13 "Path": e.Path, 14 }) 15 }