[Lada-commits] [PATCH] Stop the import if the parser has detected an error

Wald Commits scm-commit at wald.intevation.org
Tue Nov 1 16:58:02 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1478015872 -3600
# Node ID 5f7685bb82149c9f4417e3b77736f91ba22bb94f
# Parent  cf65bdff7843a2ae1c6799a438413b0a0473f555
Stop the import if the parser has detected an error.

diff -r cf65bdff7843 -r 5f7685bb8214 src/main/java/de/intevation/lada/importer/laf/LafImporter.java
--- a/src/main/java/de/intevation/lada/importer/laf/LafImporter.java	Tue Nov 01 15:18:30 2016 +0100
+++ b/src/main/java/de/intevation/lada/importer/laf/LafImporter.java	Tue Nov 01 16:57:52 2016 +0100
@@ -62,6 +62,7 @@
             }
             if (!errorListener.getErrors().isEmpty()) {
                 errors.put("parser", errorListener.getErrors());
+                return;
             }
             errors.putAll(listener.getErrors());
             mapper.setUserInfo(userInfo);


More information about the Lada-commits mailing list