Mercurial > gemma
changeset 1331:275ead19b9fd
More on following the rules for error messages to make golint happy.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 25 Nov 2018 17:12:35 +0100 |
parents | 785f14264426 |
children | 447db2bce052 |
files | pkg/models/sr.go |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/models/sr.go Sun Nov 25 17:11:13 2018 +0100 +++ b/pkg/models/sr.go Sun Nov 25 17:12:35 2018 +0100 @@ -99,7 +99,7 @@ case err != nil: errs = append(errs, err) case !b: - errs = append(errs, errors.New("Unexpected bottleneck")) + errs = append(errs, errors.New("unexpected bottleneck")) } err = conn.QueryRowContext(ctx, @@ -111,7 +111,7 @@ errs = append(errs, err) case b: errs = append(errs, - errors.New("Sounding result for this date already exists.")) + errors.New("sounding result for this date already exists")) } return errs