Please sign in to comment.
Don't rescue Errno::ENOENT in render
All Errno::ENOENT exceptions raised during layout (not template) rendering where caught assuming this would indicate that there is no layout file. However, if the Errno::ENOENT was raised inside the layout (say, from a missing partial), that exceptions was rescued, too. With this patch, it will not only not raise an error if the template is missing, it will just raise an exception if the layout is missing and the layout option hasn't been set explicitely. That way, unexpected behavior can more easily be traced back to missing templates. Fixes #135.
- Loading branch information...