Mercurial > gemma
changeset 4175:1fb3a62d8ea7
Made 'golint' and 'staticcheck' happy with pgxutils package.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 05 Aug 2019 16:55:31 +0200 |
parents | 00279b36cffd |
children | c9315a6eb2c2 |
files | pkg/pgxutils/errors.go |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/pgxutils/errors.go Mon Aug 05 16:48:11 2019 +0200 +++ b/pkg/pgxutils/errors.go Mon Aug 05 16:55:31 2019 +0200 @@ -29,6 +29,10 @@ noDataFound = "P0002" ) +// ReadableError wraps a given error Err and +// permits extraction of more user-friendly +// error messages from it in case it is an error +// from the PostgreSQL backend. type ReadableError struct { Err error }