Skip to content

Commit

Permalink
Translate errors for GORM (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 authored Sep 18, 2023
2 parents fb43530 + bca58a6 commit c270a82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/cliutil/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c270a82

Please sign in to comment.