github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/actor/actionerror/invalid_lifecycle_error.go (about)

     1  package actionerror
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  // InvalidLifecycleError is returned when the lifecycle specified is neither
     8  // running nor staging.
     9  type InvalidLifecycleError struct {
    10  	Lifecycle string
    11  }
    12  
    13  func (e InvalidLifecycleError) Error() string {
    14  	return fmt.Sprintf("Invalid lifecycle: %s", e.Lifecycle)
    15  }