github.com/cloudfoundry/cli@v7.1.0+incompatible/actor/actionerror/environment_variable_not_set_error.go (about)

     1  package actionerror
     2  
     3  import "fmt"
     4  
     5  // EnvironmentVariableNotSetError is returned when trying to unset env variable
     6  // that was not previously set.
     7  type EnvironmentVariableNotSetError struct {
     8  	EnvironmentVariableName string
     9  }
    10  
    11  func (e EnvironmentVariableNotSetError) Error() string {
    12  	return fmt.Sprintf("Env variable %s was not set.", e.EnvironmentVariableName)
    13  }