github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/actor/actionerror/application_not_found_error.go (about) 1 package actionerror 2 3 import "fmt" 4 5 // ApplicationNotFoundError is returned when a requested application is not 6 // found. 7 type ApplicationNotFoundError struct { 8 GUID string 9 Name string 10 } 11 12 func (e ApplicationNotFoundError) Error() string { 13 if e.GUID != "" { 14 return fmt.Sprintf("Application with GUID '%s' not found.", e.GUID) 15 } 16 17 return fmt.Sprintf("Application '%s' not found.", e.Name) 18 }