comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadPeriodPanel.java @ 8599:8641ce84a4b3

(issue1051) Show offending value in year format error
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 20 Mar 2015 14:31:14 +0100
parents 73a4c3c202e5
children 582e970115b6
comparison
equal deleted inserted replaced
8598:af840bf7f05a 8599:8641ce84a4b3
197 for (String sValue: sValues) { 197 for (String sValue: sValues) {
198 int value; 198 int value;
199 try { 199 try {
200 value = Integer.parseInt(sValue); 200 value = Integer.parseInt(sValue);
201 } catch (NumberFormatException e) { 201 } catch (NumberFormatException e) {
202 errors.add(MESSAGES.wrongFormat()); 202 errors.add(MESSAGES.wrongFormat() + ": " + sValue);
203 continue; 203 continue;
204 } 204 }
205 boolean isGood = false; 205 boolean isGood = false;
206 for (String validYear: validYears) { 206 for (String validYear: validYears) {
207 /* No list contains for strings? */ 207 /* No list contains for strings? */

http://dive4elements.wald.intevation.org