Mercurial > gemma
comparison pkg/imports/bn.go @ 3562:c03224d33e78
Improve error message
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 31 May 2019 17:24:48 +0200 |
parents | 8e083b271fca |
children | 4c585b5d4fe8 |
comparison
equal
deleted
inserted
replaced
3561:453f15ba8030 | 3562:c03224d33e78 |
---|---|
166 if err != nil { | 166 if err != nil { |
167 return nil, err | 167 return nil, err |
168 } | 168 } |
169 | 169 |
170 if resp.Export_bn_by_isrsResult == nil { | 170 if resp.Export_bn_by_isrsResult == nil { |
171 return nil, errors.New("no Bottlenecks found") | 171 return nil, errors.New( |
172 "The requested service returned no bottlenecks") | |
172 } | 173 } |
173 | 174 |
174 return resp.Export_bn_by_isrsResult.BottleNeckType, nil | 175 return resp.Export_bn_by_isrsResult.BottleNeckType, nil |
175 } | 176 } |
176 | 177 |