JAMES-2110 Improve message error upon keyword failed parsing readability

Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/2ca396f1
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/2ca396f1
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/2ca396f1

Branch: refs/heads/master
Commit: 2ca396f191f1d4b326485ab51c1709ba0824ed3f
Parents: b999304
Author: benwa <[email protected]>
Authored: Fri Apr 6 14:19:13 2018 +0700
Committer: benwa <[email protected]>
Committed: Mon Apr 9 14:30:55 2018 +0700

----------------------------------------------------------------------
 .../jmap/src/main/java/org/apache/james/jmap/model/Keyword.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/2ca396f1/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/Keyword.java
----------------------------------------------------------------------
diff --git 
a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/Keyword.java 
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/Keyword.java
index a9f0e7f..1ea0ed4 100644
--- 
a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/Keyword.java
+++ 
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/Keyword.java
@@ -67,7 +67,8 @@ public class Keyword {
 
     public Keyword(String flagName) {
         Preconditions.checkArgument(isValid(flagName),
-                "Flagname must not be null or empty, must have length form 
1-255, must not contain charater with hex from '\u0000' to '\u00019' or {'(' 
')' '{' ']' '%' '*' '\"' '\\'} ");
+                "Flagname must not be null or empty, must have length form 
1-255, " +
+                    "must not contain charater with hex from '\\u0000' to 
'\\u00019' or {'(' ')' '{' ']' '%' '*' '\"' '\\'} ");
         this.flagName = flagName;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to