diff pkg/pgxutils/errors.go @ 4063:fe3dd65c0891

Rename HandlePGError to HandleError.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 25 Jul 2019 11:46:23 +0200
parents 6c760abcff0e
children 5867dcf8e93c
line wrap: on
line diff
--- a/pkg/pgxutils/errors.go	Thu Jul 25 11:32:22 2019 +0200
+++ b/pkg/pgxutils/errors.go	Thu Jul 25 11:46:23 2019 +0200
@@ -20,7 +20,7 @@
 )
 
 // Handle PostgreSQL error codes
-func HandlePGError(err error) error {
+func HandleError(err error) error {
 	switch e := err.(type) {
 	case pgx.PgError:
 		return dbError(e)