Mercurial > gemma
changeset 3562:c03224d33e78
Improve error message
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 31 May 2019 17:24:48 +0200 |
parents | 453f15ba8030 |
children | f65ef9148d00 |
files | pkg/imports/bn.go |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/imports/bn.go Fri May 31 16:58:42 2019 +0200 +++ b/pkg/imports/bn.go Fri May 31 17:24:48 2019 +0200 @@ -168,7 +168,8 @@ } if resp.Export_bn_by_isrsResult == nil { - return nil, errors.New("no Bottlenecks found") + return nil, errors.New( + "The requested service returned no bottlenecks") } return resp.Export_bn_by_isrsResult.BottleNeckType, nil