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

no handler accepted error is thrown when a template is not found #102

Closed osa1 closed 10 years ago

osa1 commented 10 years ago

When a template is not found, "no handler accepted" message is printed. This message is misleading and I was wondering if that could be easily improved to something more useful like "template is not found: ".

mightybyte commented 10 years ago

Because of the way routing works in snap-core, we can't have a better error message here. There's no way for snap to generically know that you were looking for a template. If you want a better message, you'll have to set up your own messages on a per-app basis.