Various cookieplone templates include sanity checks / validation in hooks before they run.
When running as a sub-template using cookieplone.generator.generate_subtemplate, output is suppressed. As a result, the user only sees an unhelpful message like "Pre-Prompt Hook script failed" and can't see what happened.
I'd suggest we instead store output in a buffer, and then if the subtemplate fails we can output the buffer for debugging purposes.
Various cookieplone templates include sanity checks / validation in hooks before they run.
When running as a sub-template using cookieplone.generator.generate_subtemplate, output is suppressed. As a result, the user only sees an unhelpful message like "Pre-Prompt Hook script failed" and can't see what happened.
I'd suggest we instead store output in a buffer, and then if the subtemplate fails we can output the buffer for debugging purposes.