changeset 6028:25d927cb4b25

WstParser: warn if timestamp can not be set, cosmetics.
author Tom Gottfried <tom.gottfried@intevation.de>
date Thu, 16 May 2013 12:31:53 +0200
parents 231baa52daa3
children f9c5e1a8032d
files backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);

http://dive4elements.wald.intevation.org