changeset 1339:3f6a77c9efc9

Stop probe import if probe is a duplicate and set better error code.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 07 Apr 2017 09:05:00 +0200
parents ffbf9cff4aa6
children 372f7f679340
files src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java	Fri Apr 07 08:53:41 2017 +0200
+++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java	Fri Apr 07 09:05:00 2017 +0200
@@ -166,7 +166,7 @@
             // Probe was found but some data does not match
             else if(i == Identified.REJECT){
                 ReportItem err = new ReportItem();
-                err.setCode(631);
+                err.setCode(671);
                 err.setKey("duplicate");
                 err.setValue("");
                 currentErrors.add(err);
@@ -178,6 +178,7 @@
                     warnings.put(object.getIdentifier(),
                         new ArrayList<ReportItem>(currentWarnings));
                 }
+                return;
             }
             // It is a brand new probe!
             else if(i == Identified.NEW){
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)