github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+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 }