Author: cbrisson
Date: Wed Aug 21 19:39:10 2019
New Revision: 1865656
URL: http://svn.apache.org/viewvc?rev=1865656&view=rev
Log:
[engine][VELOCITY-917] Fix error message
Modified:
velocity/engine/branches/parser_experiments/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
Modified:
velocity/engine/branches/parser_experiments/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
URL:
http://svn.apache.org/viewvc/velocity/engine/branches/parser_experiments/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java?rev=1865656&r1=1865655&r2=1865656&view=diff
==============================================================================
---
velocity/engine/branches/parser_experiments/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
(original)
+++
velocity/engine/branches/parser_experiments/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
Wed Aug 21 19:39:10 2019
@@ -407,7 +407,7 @@ public class RuntimeInstance implements
{
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);
}