refactor(api): rename database error handler function
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/jackc/pgx/v5/pgconn"
|
||||
)
|
||||
|
||||
func HandlePgError(err error) (int, string) {
|
||||
func HandleDBError(err error) (int, string) {
|
||||
pgErr, ok := err.(*pgconn.PgError)
|
||||
if !ok {
|
||||
return 500, err.Error()
|
||||
|
||||
Reference in New Issue
Block a user