Skip to content

Commit

Permalink
Merge pull request #40 from egawata/fatal_db_conn_error
Browse files Browse the repository at this point in the history
raise error when failed to open db connection
  • Loading branch information
alash3al authored Sep 14, 2022
2 parents f84c05f + bd12dbf commit aab400d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func main() {

db, err := contract.Open(cfg.Engine.Driver, cfg.Engine.DSN)
if err != nil {
log.Fatal(err.Error())
log.Fatal("failed to open database connection due to: ", err.Error())
}

redis.ListenAndServe(cfg, db)
Expand Down

0 comments on commit aab400d

Please sign in to comment.