diff options
author | Claude Brisson <cbrisson@apache.org> | 2019-08-21 19:39:10 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2019-08-21 19:39:10 +0000 |
commit | 3db41d9daa0a079fb0c64e9d297af6db90b9e5d8 (patch) | |
tree | e44df1e3b87955524fa1581d0c3eb420345dd880 /velocity-engine-core/src | |
parent | 3aec6d45e45a2d6ff0da477330d72568ee3bbd14 (diff) | |
download | apache-velocity-engine-3db41d9daa0a079fb0c64e9d297af6db90b9e5d8.tar.gz |
[engine][VELOCITY-917] Fix error message
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/branches/parser_experiments@1865656 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java index 8b27fb74..ed5f9193 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java @@ -407,7 +407,7 @@ public class RuntimeInstance implements RuntimeConstants, RuntimeServices { if (configuredChar.length() != 1) { - throw new RuntimeException(configKey + " must be a single UTF-8 character"); + throw new IllegalArgumentException(String.format("value of '%s' must be a single character string, but is '%s'", configKey, configuredChar)); } return configuredChar.charAt(0); } |