Skip to content

Commit

Permalink
More verbose error message for redis connection failure (#479) (#480)
Browse files Browse the repository at this point in the history
Signed-off-by: Lily Sturmann <lsturman@redhat.com>
  • Loading branch information
lkatalin authored Nov 4, 2021
1 parent 317e88d commit 0d3023a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func ConfigureAPI() {
if viper.GetBool("enable_retrieve_api") {
redisClient, err = cfg.New(context.Background(), "tcp", fmt.Sprintf("%v:%v", viper.GetString("redis_server.address"), viper.GetUint64("redis_server.port")))
if err != nil {
log.Logger.Panic(err)
log.Logger.Panic("failure connecting to redis instance: ", err)
}
}

Expand Down

0 comments on commit 0d3023a

Please # to comment.