Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch variables triggering MISSING_VAR #553

Closed
zspitzer opened this issue Mar 29, 2018 · 2 comments
Closed

catch variables triggering MISSING_VAR #553

zspitzer opened this issue Mar 29, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@zspitzer
Copy link

<cfscript>
	public string function renderPage( required any page, required any docTree, required boolean edit ){
		try {
			var renderedPage = renderTemplate(
				  template = "templates/#_getPageLayoutFile( arguments.page )#.cfm"
				, args     = { page = arguments.page, docTree=arguments.docTree, edit=edit }
				, helpers  = "/builders/html/helpers"
			);
		} catch( any e ) {
			e.additional.luceeDocsPageId = arguments.page.getid();
			rethrow;
		}
	}
<cfscript>

throws MISSING_VAR: Variable e is not declared with a var statement.

from https://github.com/lucee/lucee-docs/blob/master/builders/html/Builder.cfc#L37

@KamasamaK KamasamaK added the bug label Mar 29, 2018
@ryaneberly ryaneberly added this to the 1.4.0 milestone May 5, 2018
@ryaneberly ryaneberly self-assigned this May 5, 2018
@ryaneberly
Copy link
Contributor

fixed in #562

@ryaneberly
Copy link
Contributor

@zspitzer Thanks for the clear and complete example. Keep em coming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants