Mercurial > gemma
diff pkg/imports/st.go @ 4058:6c5c15b2fb64
Database errors have to be handled elsewhere than in imports, too
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 25 Jul 2019 09:12:53 +0200 |
parents | 4c585b5d4fe8 |
children | 6c760abcff0e |
line wrap: on
line diff
--- a/pkg/imports/st.go Thu Jul 25 08:16:34 2019 +0200 +++ b/pkg/imports/st.go Thu Jul 25 09:12:53 2019 +0200 @@ -19,6 +19,7 @@ "errors" "time" + "gemma.intevation.de/gemma/pkg/common" "gemma.intevation.de/gemma/pkg/models" ) @@ -202,7 +203,7 @@ st.Source, st.Tolerance, ).Scan(&id); err != nil { - return nil, handleError(err) + return nil, common.HandlePGError(err) } // store the associated countries.