Mercurial > gemma
changeset 4497:ca7f9c56697a
WG import: "End date not after start date" is an hard error.
As this leads to data not being imported it should be marked as Error
(not Warning) in the Logs).
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Mon, 30 Sep 2019 13:41:39 +0200 |
parents | 8c98d801e62e |
children | 8763da6bef4a |
files | pkg/imports/wg.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/imports/wg.go Mon Sep 30 12:58:23 2019 +0200 +++ b/pkg/imports/wg.go Mon Sep 30 13:41:39 2019 +0200 @@ -236,7 +236,7 @@ // We need a valid, non-empty time range to identify gauge versions if dr.Enddate != nil && dr.Startdate != nil && !time.Time(*dr.Enddate).After(time.Time(*dr.Startdate)) { - feedback.Warn("End date not after start date") + feedback.Error("End date not after start date") unchanged++ continue }