Hi,
from a velocity.log:
Tue Nov 13 14:52:49 CET 2001 [error] VM #tableSearchRow: error : too few arguments to
macro. Wanted 1 got 2 -->
Hmmm,
confusing? I think so. Please apply the attached patch. BTW: Why the "-->" at the end
of the error message?
Regards
Henning
diff -Nurb
jakarta-velocity/src/java/org/apache/velocity/runtime/directive/VelocimacroProxy.java
jakarta-velocity.p/src/java/org/apache/velocity/runtime/directive/VelocimacroProxy.java
---
jakarta-velocity/src/java/org/apache/velocity/runtime/directive/VelocimacroProxy.java
Tue Aug 7 23:57:56 2001
+++
+jakarta-velocity.p/src/java/org/apache/velocity/runtime/directive/VelocimacroProxy.java
+ Tue Nov 13 14:57:18 2001
@@ -259,7 +259,9 @@
if ( getNumArgs() != i )
{
- rsvc.error("VM #" + macroName + ": error : too few arguments to macro.
Wanted "
+ String argErr = (getNumArgs() > i) ? "few" : "many";
+
+ rsvc.error("VM #" + macroName + ": error : too " + argErr + " arguments
+to macro. Wanted "
+ getNumArgs() + " got " + i + " -->");
return;
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH [EMAIL PROTECTED]
Am Schwabachgrund 22 Fon.: 09131 / 50654-0 [EMAIL PROTECTED]
D-91054 Buckenhof Fax.: 09131 / 50654-20
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>