Heh. Consider it done.
geir
On 11/13/01 9:22 AM, "Henning P. Schmiedehausen" <[EMAIL PROTECTED]>
wrote:
> 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/VelocimacroPro
> xy.java
> jakarta-velocity.p/src/java/org/apache/velocity/runtime/directive/VelocimacroP
> roxy.java
> ---
> jakarta-velocity/src/java/org/apache/velocity/runtime/directive/VelocimacroPro
> xy.java Tue Aug 7 23:57:56 2001
> +++
> jakarta-velocity.p/src/java/org/apache/velocity/runtime/directive/VelocimacroP
> roxy.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;
>
--
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>