github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/actor/actionerror/stack_not_found_error.go (about) 1 package actionerror 2 3 import "fmt" 4 5 // StackNotFoundError is returned when a requested stack is not found. 6 type StackNotFoundError struct { 7 GUID string 8 Name string 9 } 10 11 func (e StackNotFoundError) Error() string { 12 if e.Name == "" { 13 return fmt.Sprintf("Stack with GUID '%s' not found.", e.GUID) 14 } 15 16 return fmt.Sprintf("Stack '%s' not found.", e.Name) 17 }