From f440a81049c59bd9c45543c65e902a1f586aa19c Mon Sep 17 00:00:00 2001 From: krichard1212 Date: Mon, 29 Jul 2024 16:43:14 +0200 Subject: [PATCH] refactor DB --- lib/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.go b/lib/db.go index 04018fa..6620461 100644 --- a/lib/db.go +++ b/lib/db.go @@ -21,7 +21,7 @@ func DB() *gorm.DB { config := GetConfig() connection, err := gorm.Open(postgres.Open(config.Settings.Database.URI), &gorm.Config{}) if err != nil { - panic("failed to connect database") + panic(err) } if config.Settings.Database.AutoMigration {