diff --git a/util/cliutil/util.go b/util/cliutil/util.go index a80c3dd0a..886c554cd 100644 --- a/util/cliutil/util.go +++ b/util/cliutil/util.go @@ -196,6 +196,7 @@ func SetupDatabase(dburl string, maxConnections int) (*gorm.DB, error) { db, err := gorm.Open(dial, &gorm.Config{ SkipDefaultTransaction: true, + TranslateError: true, }) if err != nil { return nil, err