{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/e77a97b7bec8a0dc42fee8ecb640cb25?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e77a97b7bec8a0dc42fee8ecb640cb25","url":"https://api.github.com/users/bigpresh","login":"bigpresh","id":54107},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-10-31T16:26:07Z","closed_at":null,"comments":4,"url":"https://api.github.com/repos/sukria/Dancer/issues/641","body":"Currently, if you try to use a template that doesn't exist, you just get a 404 error.\r\n\r\nI think `Dancer::Template::Abstract->template()` should check for the existence of the view named, first, and log a descriptive message if it's not found.\r\n\r\nArguably, we should perhaps return a 500, too, as returning 404 suggests the problem is with the *request*  (the URL not existing), whereas the actual problem is in the code in the route handler which matched, trying to use a view that doesn't exist).","html_url":"https://github.com/sukria/Dancer/issues/641","title":"Need a more helpful log message for non-existent templates","number":641,"id":1588726,"created_at":"2011-09-07T12:05:05Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/584d974034606369cf2e3401e4497354?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"584d974034606369cf2e3401e4497354","url":"https://api.github.com/users/melo","login":"melo","id":485},"updated_at":"2011-10-31T16:26:07Z","url":"https://api.github.com/repos/sukria/Dancer/issues/comments/2579206","body":"Ok, this broke my code :)\r\n\r\nI understand the rational for better error messages, but some template engines have multiple template roots and perform all the logic of converting template name to template path internally.\r\n\r\nMy recommendation to improve @bigpresh case would be to wrap the call to render()/apply_renderer() in a eval and if that catches a exception, then print the error message.\r\n\r\nSorry for just catching this now, but I only upgrade Dancer today.","id":2579206,"created_at":"2011-10-31T16:26:07Z"}}