1 parent 250dd2f commit 5d91aa5Copy full SHA for 5d91aa5
1 file changed
main.go
@@ -78,10 +78,14 @@ func main() {
78
ApiAddress: *apiEndpoint,
79
Username: *user,
80
Password: *password,
81
- SkipSslValidation: true,
+ SkipSslValidation: *skipSSLValidation,
82
}
83
- cfClient, _ := cfclient.NewClient(&c)
+ cfClient, errCfClient := cfclient.NewClient(&c)
84
85
+ if errCfClient != nil {
86
+ logging.Error.Fatal("Error setting up CF Client: ", errCfClient)
87
+ os.Exit(1)
88
+ }
89
//Creating Caching
90
var cachingClient caching.Caching
91
if caching.IsNeeded(*wantedEvents) {
0 commit comments