github.com/cloudfoundry/cli@v7.1.0+incompatible/actor/actionerror/no_eligible_packages_error.go (about) 1 package actionerror 2 3 import "fmt" 4 5 type NoEligiblePackagesError struct { 6 AppName string 7 BinaryName string 8 } 9 10 func (e NoEligiblePackagesError) Error() string { 11 switch { 12 case e.AppName != "": 13 return fmt.Sprintf("App '%s' has no eligible packages.", e.AppName) 14 default: 15 return fmt.Sprintf("No eligible pacakges available for app.") 16 } 17 18 }