github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/command/translatableerror/docker_password_not_set_error.go (about)

     1  package translatableerror
     2  
     3  type DockerPasswordNotSetError struct{}
     4  
     5  func (DockerPasswordNotSetError) Error() string {
     6  	return "Environment variable CF_DOCKER_PASSWORD not set."
     7  }
     8  
     9  func (e DockerPasswordNotSetError) Translate(translate func(string, ...interface{}) string) string {
    10  	return translate(e.Error())
    11  }