Mercurial > gemma
changeset 4908:52c31d3b5131 fairway-marks-import
Report properly if nothing changed
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 07 Feb 2020 19:42:09 +0100 |
parents | 644cb7c175f3 |
children | 6f244b5eb716 |
files | pkg/imports/fm_bcnlat.go |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/imports/fm_bcnlat.go Fri Feb 07 19:38:48 2020 +0100 +++ b/pkg/imports/fm_bcnlat.go Fri Feb 07 19:42:09 2020 +0100 @@ -16,7 +16,6 @@ import ( "context" "database/sql" - "errors" "strconv" "time" @@ -231,7 +230,7 @@ } if features == 0 { - err := errors.New("no valid new features found") + err := UnchangedError("no valid new features found") return nil, err }