changeset 5106:d16398d65a59 dami

Importer: Print a decent error when failing to parse a gew and exit. This makes the importer easier to debug if you do not get your mysterious errors at some other place.
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 26 Feb 2013 19:39:04 +0100
parents f57b096df75a
children 357938c64967
files flys-backend/src/main/java/de/intevation/flys/importer/Importer.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/Importer.java	Tue Feb 26 10:53:18 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/Importer.java	Tue Feb 26 19:39:04 2013 +0100
@@ -141,7 +141,8 @@
                 infoGewParser.parse(gewFile);
             }
             catch (IOException ioe) {
-                log.error("error while parsing gew: " + gew);
+                log.error("error while parsing gew: " + gew, ioe);
+                System.exit(1);
             }
         }
 
@@ -156,7 +157,8 @@
                 infoGewParser.parse(gewFile);
             }
             catch (IOException ioe) {
-                log.error("error while parsing gew: " + gew);
+                log.error("error while parsing gew: " + gew, ioe);
+                System.exit(1);
             }
         }
 

http://dive4elements.wald.intevation.org