refactor(api): make database error handler unexported
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/jackc/pgx/v5/pgconn"
|
||||
)
|
||||
|
||||
func HandleDBError(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