Mercurial > gemma
diff pkg/imports/sec.go @ 4180:91cb4a7b1b13
Always try to translate to readable error if import failed
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 05 Aug 2019 18:21:19 +0200 |
parents | a376351d2774 |
children | 2336f75637d1 |
line wrap: on
line diff
--- a/pkg/imports/sec.go Mon Aug 05 18:14:41 2019 +0200 +++ b/pkg/imports/sec.go Mon Aug 05 18:21:19 2019 +0200 @@ -19,7 +19,6 @@ "time" "gemma.intevation.de/gemma/pkg/models" - "gemma.intevation.de/gemma/pkg/pgxutils" ) // Section is a Job to create a section in the database. @@ -182,7 +181,7 @@ sec.Source, sec.Tolerance, ).Scan(&id); err != nil { - return nil, pgxutils.ReadableError{Err: err} + return nil, err } if err := track(ctx, tx, importID, "waterway.sections", id); err != nil {