# HG changeset patch # User Andre Heinecke # Date 1361903944 -3600 # Node ID d16398d65a591ea7ccf7480bb315892e3cbdcf48 # Parent f57b096df75af2678c19f47fcbec84cefcd69b36 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. diff -r f57b096df75a -r d16398d65a59 flys-backend/src/main/java/de/intevation/flys/importer/Importer.java --- 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); } }