Skip to content
Snippets Groups Projects
Unverified Commit 0d3023a6 authored by Lily Sturmann's avatar Lily Sturmann Committed by GitHub
Browse files

More verbose error message for redis connection failure (#479) (#480)

parent 317e88db
Branches
Tags
No related merge requests found
......@@ -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)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment