This is an automated email from the ASF dual-hosted git repository.

thiagohp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git


The following commit(s) were added to refs/heads/master by this push:
     new b543c1ed1 TAP5-2725: Lack of consistency in DateField validation error 
message
b543c1ed1 is described below

commit b543c1ed112901f54dd29245bd4e91e4bd421aad
Author: Thiago H. de Paula Figueiredo <[email protected]>
AuthorDate: Fri May 27 15:42:20 2022 -0300

    TAP5-2725: Lack of consistency in DateField validation error message
---
 .../main/java/org/apache/tapestry5/corelib/components/DateField.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/DateField.java
 
b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/DateField.java
index 821326bda..dc97ce84a 100644
--- 
a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/DateField.java
+++ 
b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/DateField.java
@@ -192,7 +192,7 @@ public class DateField extends AbstractField
             response.put(RESULT, new 
SimpleDateFormat("yyyy-MM-dd").format(date));
         } catch (ParseException ex)
         {
-            response.put(ERROR, ex.getMessage());
+            response.put(ERROR, "Unparseable date");
         }
 
         return response;

Reply via email to