| commit | 3db41d9daa0a079fb0c64e9d297af6db90b9e5d8 | [log] [tgz] |
|---|---|---|
| author | Claude Brisson <cbrisson@apache.org> | Wed Aug 21 19:39:10 2019 +0000 |
| committer | Claude Brisson <cbrisson@apache.org> | Wed Aug 21 19:39:10 2019 +0000 |
| tree | e44df1e3b87955524fa1581d0c3eb420345dd880 | |
| parent | 3aec6d45e45a2d6ff0da477330d72568ee3bbd14 [diff] |
[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
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 8b27fb7..ed5f919 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 @@ private char getConfiguredCharacter(String configKey, char defaultChar) { 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); }