Mercurial > gemma
comparison pkg/imports/wx.go @ 4058:6c5c15b2fb64
Database errors have to be handled elsewhere than in imports, too
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 25 Jul 2019 09:12:53 +0200 |
parents | 4acbee65275d |
children | 6c760abcff0e |
comparison
equal
deleted
inserted
replaced
4057:b79b60c0cc5a | 4058:6c5c15b2fb64 |
---|---|
21 "errors" | 21 "errors" |
22 "fmt" | 22 "fmt" |
23 "io" | 23 "io" |
24 "time" | 24 "time" |
25 | 25 |
26 "gemma.intevation.de/gemma/pkg/common" | |
26 "gemma.intevation.de/gemma/pkg/wfs" | 27 "gemma.intevation.de/gemma/pkg/wfs" |
27 ) | 28 ) |
28 | 29 |
29 // WaterwayAxis is an import job to import | 30 // WaterwayAxis is an import job to import |
30 // the waterway axes in form of line string geometries | 31 // the waterway axes in form of line string geometries |
318 case err == sql.ErrNoRows: | 319 case err == sql.ErrNoRows: |
319 *outside++ | 320 *outside++ |
320 // ignore -> filtered by responsibility_areas | 321 // ignore -> filtered by responsibility_areas |
321 return nil | 322 return nil |
322 case err != nil: | 323 case err != nil: |
323 feedback.Warn(handleError(err).Error()) | 324 feedback.Warn(common.HandlePGError(err).Error()) |
324 default: | 325 default: |
325 *features++ | 326 *features++ |
326 } | 327 } |
327 return nil | 328 return nil |
328 } | 329 } |