Mercurial > gemma
changeset 2345:df6383831ad3
Sounding result import: Be more verbose if sounding result already exists for a bottleneck/date.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 20 Feb 2019 10:37:36 +0100 |
parents | a5b87a695469 |
children | 4bac5d9cd77d |
files | pkg/models/sr.go |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/models/sr.go Wed Feb 20 10:21:16 2019 +0100 +++ b/pkg/models/sr.go Wed Feb 20 10:37:36 2019 +0100 @@ -21,6 +21,8 @@ "errors" "fmt" "io" + + "gemma.intevation.de/gemma/pkg/common" ) type ( @@ -91,7 +93,9 @@ errs = append(errs, err) case b: errs = append(errs, - errors.New("sounding result for this date already exists")) + fmt.Errorf("sounding result for date %s already exists at bottleneck '%s'", + m.Date.Time.Format(common.DateFormat), + m.Bottleneck)) } return errs