Quantcast
Channel: Mako: Ticket Query
Viewing all articles
Browse latest Browse all 38

#17: More descriptive error message when missing required arguments for a template

$
0
0

When a template takes an argument like <%page args="x" /> and x is not provided, it yields the following error:

exceptions.TypeError?: render_body() takes exactly 2 arguments (1 given)

I think we should add some more explicit reason of what's missing. Like "page.html takes exactly 2 arguments (1 given). Missing required argument x."


Viewing all articles
Browse latest Browse all 38

Trending Articles