err = db.DBconn.HealthCheck()
if err != nil {
+ log.Printf("MongoDB health problem: %s", err.Error())
return pkgerrors.Cause(err)
}
// TODO Convert these to configuration files instead of environment variables.
err = db.NewEtcdClient(nil, c)
if err != nil {
log.Printf("Etcd Client Initialization failed with error: %s", err.Error())
+ return pkgerrors.Cause(err)
}
return nil
}