Mercurial > gemma
comparison pkg/imports/sr.go @ 1330:785f14264426
Follow the rules for error messages to make golint happy.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 25 Nov 2018 17:11:13 +0100 |
parents | d753ce6cf588 |
children | 5bb1e3c1f364 |
comparison
equal
deleted
inserted
replaced
1329:ea2143adc6d3 | 1330:785f14264426 |
---|---|
202 if err != nil { | 202 if err != nil { |
203 return err | 203 return err |
204 } | 204 } |
205 | 205 |
206 if len(xyz) == 0 { | 206 if len(xyz) == 0 { |
207 return errors.New("XYZ does not contain any vertices.") | 207 return errors.New("XYZ does not contain any vertices") |
208 } | 208 } |
209 | 209 |
210 // Is there a boundary shapefile in the ZIP archive? | 210 // Is there a boundary shapefile in the ZIP archive? |
211 polygon, err := loadBoundary(z) | 211 polygon, err := loadBoundary(z) |
212 if err != nil { | 212 if err != nil { |