On Wed, Jun 30, 2010 at 10:47 AM, Furst, Carl <carl.fu...@mlb.com> wrote:
> This component crashes... Why? Because of whitespace between the end of the
> if block and the elsif. I wouldn't say it's a bug, but it would be
> convenient if we didn't have to decipher the following error message as "you
> have something that mason considers code between your if and elsif":
>
> Error during compilation of ifthenelse.mhtml:
> syntax error at ifthenelse.mhtml line 10, near "elsif"
> (Might be a runaway multi-line '' string starting on line 9)
> Global symbol "$dosomethingelse" requires explicit package name at
> /cms/cfurst/head/newsroom/htdocs/ifthenelse.mhtml line 10.

It does sound annoying, but that error message looks pretty
informative to me.  You'd probably be better off with a <%perl> or
<%init> block here if there's really nothing to print.  I tend to
avoid the % because it's so easy to break with a space before it on
the line.

- Perrin

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to