Skip to content

Commit

Permalink
Updated DB error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
p0t4t0sandwich committed Apr 16, 2024
1 parent 4a918d4 commit eb0c1b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/database/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ func SuccessResponse[T any](data T) Response[T] {

// ErrorResponse - Create a new error response
func ErrorResponse[T any](message string, err error) Response[T] {
log.Println(message + ":")
log.Println(err)
log.Println("[Error]: " + message + ":\n\t" + err.Error())
return Response[T]{
Success: false,
Message: message,
Expand Down

0 comments on commit eb0c1b7

Please sign in to comment.