snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

Better error message when trying to render a template that has been filtered out #177

Open imalsogreg opened 8 years ago

imalsogreg commented 8 years ago

Running gHeistSingleServe on a template that has been filtered out by hcCompiledTemplateFilter (especially templates beginning with '_') reports ERROR: Template "_foopage" not found. This can be confusing because the documentation suggests that underscored templates can be served by heistServeSingle, and the filtering out of underscored templates is a default in the Heist snaplet initializer.

It would be nice to have a better error message in these cases. cc @kaol