github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/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  }