Didn't look at the source but is it possible to display the template where
the error occurs (line would be nice too but template is definitely useful).

I have had feedback from colleagues about that and did not have time to look
into it.

-- 
 St�phane Bailliez 
 Software Engineer, Paris - France 
 iMediation - http://www.imediation.com 
 Disclaimer: All the opinions expressed above are mine and not those from my
company. 



> -----Original Message-----
> From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 3:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Confusing error message in Velocity 1.3-dev
> 
> 
> 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/directiv
> e/VelocimacroPro
> > xy.java 
> > 
> jakarta-velocity.p/src/java/org/apache/velocity/runtime/direct
> ive/VelocimacroP
> > roxy.java
> > --- 
> > 
> jakarta-velocity/src/java/org/apache/velocity/runtime/directiv
> e/VelocimacroPro
> > xy.java       Tue Aug  7 23:57:56 2001
> > +++ 
> > 
> jakarta-velocity.p/src/java/org/apache/velocity/runtime/direct
> ive/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]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to