Skip to content
Snippets Groups Projects
Commit 150b864c authored by Tucker Gary Siegel's avatar Tucker Gary Siegel
Browse files

add printing to error

parent 78df3347
Branches master
No related tags found
No related merge requests found
...@@ -28,11 +28,11 @@ func CreateDBSession() error { ...@@ -28,11 +28,11 @@ func CreateDBSession() error {
Conn, err = mongo.Connect(Ctx, options.Client(). Conn, err = mongo.Connect(Ctx, options.Client().
ApplyURI(ConnString)) ApplyURI(ConnString))
if err != nil { if err != nil {
panic(config.DATABSE_CONNECTION_ERROR) panic(config.DATABSE_CONNECTION_ERROR.AddLogDetails(err.Error()))
} }
err = Conn.Ping(Ctx, nil) err = Conn.Ping(Ctx, nil)
if err != nil { if err != nil {
panic(config.DATABSE_CONNECTION_ERROR) panic(config.DATABSE_CONNECTION_ERROR.AddLogDetails(err.Error()))
} }
return nil return nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment