diff 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
line wrap: on
line diff
--- a/pkg/imports/bn.go	Tue Jun 18 12:02:18 2019 +0200
+++ b/pkg/imports/bn.go	Tue Jun 18 12:43:01 2019 +0200
@@ -425,7 +425,8 @@
 		bnIds = append(bnIds, nid)
 	}
 	if err := bns.Err(); err != nil {
-		return err
+		feedback.Warn(handleError(err).Error())
+		return nil
 	}
 	if len(bnIds) == 0 {
 		feedback.Warn(