github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/actor/actionerror/space_ssh_already_disabled_error.go (about)

     1  package actionerror
     2  
     3  import "fmt"
     4  
     5  // SpaceSSHAlreadyDisabledError is returned when ssh is already disabled on the space
     6  type SpaceSSHAlreadyDisabledError struct {
     7  	Space string
     8  	Err   error
     9  }
    10  
    11  func (e SpaceSSHAlreadyDisabledError) Error() string {
    12  	if e.Err != nil {
    13  		return e.Err.Error()
    14  	}
    15  	return fmt.Sprintf("ssh support for space '%s' is already disabled.", e.Space)
    16  }