-
Notifications
You must be signed in to change notification settings - Fork 479
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
"Missing one or more blocks" not helpful enough #733
Comments
Can you share your template or the piece that fails? |
The point of this error is that there aren't any blocks, because something is rather horribly wrong. But let's see what we can do to make the error more apparent after examining your template :) |
@sethkinast here are the sources, I removed some HTML (shouldn't make a difference I guess). base.dust:
activate.dust:
login.dust:
|
I believe the debug line for Malformed template here doesn't actually make sense. The template is not malformed. Here is a reduced test case
with more useful debugging
the above will output
I propose we change the logic to use
whenever blocks are not defined and whenever the key is not found in the list of known blocks |
…ntext but we have blocks to look at
…ntext but we have blocks to look at
Closing since I am no longer using Dustjs. |
I have my log-level set to "DEBUG" but I still only get the error "Malformed template was missing one or more blocks.". It would be helpful if the block names were written when log-level=DEBUG.
The text was updated successfully, but these errors were encountered: