fix(): catch errors and increase verbosity
This commit is contained in:
@@ -49,6 +49,11 @@ type CrdConfig struct {
|
||||
}
|
||||
|
||||
func RecreateIPPoolCrd(cfg *Config, name string, ips []string) error {
|
||||
|
||||
if len(ips) == 0 {
|
||||
return fmt.Errorf("no IPs provided to create IP Pool CRD")
|
||||
}
|
||||
|
||||
routeclient, err := createRestClient()
|
||||
if err != nil {
|
||||
return fmt.Errorf("error creating REST Client: %v", err.Error())
|
||||
|
Reference in New Issue
Block a user