[Dive4elements-commits] [PATCH 1 of 2] WstParser: warn if timestamp can not be set, cosmetics

Wald Commits scm-commit at wald.intevation.org
Thu May 16 12:34:35 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1368700313 -7200
# Node ID 25d927cb4b259154123863d51226fc124229f88f
# Parent  231baa52daa3457fce6500733f813253b4aed230
WstParser: warn if timestamp can not be set, cosmetics.

diff -r 231baa52daa3 -r 25d927cb4b25 backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java	Wed May 15 16:23:20 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java	Thu May 16 12:31:53 2013 +0200
@@ -83,6 +83,8 @@
                 DateGuesser.guessDate(string));
         }
         catch (IllegalArgumentException iae) {
+            log.warn("WST: String '" + string +
+                     "' could not be interpreted as valid timestamp");
         }
         return null;
     }
@@ -134,7 +136,7 @@
                         columnCount = Integer.parseInt(line);
                         if (columnCount <= 0) {
                             throw new NumberFormatException(
-                                "number columns <= 0");
+                                "number of columns <= 0");
                         }
                         log.debug("Number of columns: " + columnCount);
                         wst.setNumberColumns(columnCount);


More information about the Dive4elements-commits mailing list