[PATCH] (issue1051) Show offending value in year format error

Wald Commits scm-commit at wald.intevation.org
Fri Mar 20 14:31:18 CET 2015


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1426858274 -3600
# Node ID 8641ce84a4b3525715ca0b152002a77627b110e0
# Parent  af840bf7f05a2e727081be218e09475e14af1bc4
(issue1051) Show offending value in year format error

diff -r af840bf7f05a -r 8641ce84a4b3 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadPeriodPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadPeriodPanel.java	Thu Mar 19 16:50:24 2015 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadPeriodPanel.java	Fri Mar 20 14:31:14 2015 +0100
@@ -199,7 +199,7 @@
             try {
                 value = Integer.parseInt(sValue);
             } catch (NumberFormatException e) {
-                errors.add(MESSAGES.wrongFormat());
+                errors.add(MESSAGES.wrongFormat() + ": " + sValue);
                 continue;
             }
             boolean isGood = false;


More information about the Dive4Elements-commits mailing list