From c4b6e3c2065ccdaba3250f8d9bb65a19901fd57e Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Wed, 17 Jan 2024 21:35:11 +0700 Subject: [PATCH] fix: gorm conf --- database/postgresql.connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/postgresql.connection.go b/database/postgresql.connection.go index 933eb26..bb7ad24 100644 --- a/database/postgresql.connection.go +++ b/database/postgresql.connection.go @@ -9,7 +9,7 @@ import ( ) func InitPostgresDatabase(conf *cfgldr.Database, isDebug bool) (db *gorm.DB, err error) { - gormConf := &gorm.Config{} + gormConf := &gorm.Config{TranslateError: true} if !isDebug { gormConf.Logger = gormLogger.Default.LogMode(gormLogger.Silent)