Mercurial > gemma
comparison pkg/imports/bn.go @ 3681:c9e1848a516a
Handle violation of responsibility areas graceful for BN import.
As many others this is an error, which should only affect the specific
bottleneck failing and not the whole import.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Tue, 18 Jun 2019 12:43:01 +0200 |
parents | 0227670dedd5 |
children | 063a1883b5cb |
comparison
equal
deleted
inserted
replaced
3680:0300282b9537 | 3681:c9e1848a516a |
---|---|
423 return err | 423 return err |
424 } | 424 } |
425 bnIds = append(bnIds, nid) | 425 bnIds = append(bnIds, nid) |
426 } | 426 } |
427 if err := bns.Err(); err != nil { | 427 if err := bns.Err(); err != nil { |
428 return err | 428 feedback.Warn(handleError(err).Error()) |
429 return nil | |
429 } | 430 } |
430 if len(bnIds) == 0 { | 431 if len(bnIds) == 0 { |
431 feedback.Warn( | 432 feedback.Warn( |
432 "No gauge matching '%s' or given time available", bn.Fk_g_fid) | 433 "No gauge matching '%s' or given time available", bn.Fk_g_fid) |
433 return nil | 434 return nil |