github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/actor/actionerror/package_not_found_in_app_error.go (about) 1 package actionerror 2 3 import "fmt" 4 5 type PackageNotFoundInAppError struct { 6 GUID string 7 AppName string 8 BinaryName string 9 } 10 11 func (e PackageNotFoundInAppError) Error() string { 12 switch { 13 case e.GUID != "" && e.AppName != "": 14 return fmt.Sprintf("Package with guid '%s' not found in app '%s'.", e.GUID, e.AppName) 15 case e.AppName != "": 16 return fmt.Sprintf("Package not found in app '%s'.", e.AppName) 17 default: 18 return fmt.Sprintf("Package not found.") 19 } 20 21 }