Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
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