-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Do not swallow all exceptions on render #5495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/cc: @jekyll/build |
Digging into this a bit deeper, I can trace this all the way back to commit number two, when this was still called autoblog 7dfe32a Here is what the function looked like: def read_layouts
base = File.join(self.root, "_layouts")
dir = Dir.new(base)
dir.each do |f|
unless %w{. ..}.include?(f)
name = f.split(".")[0..-2].join(".")
self.layouts[name] = File.read(File.join(base, f))
end
end
rescue Errno::ENOENT => e
# ignore missing layout dir
end So, it looks like this was not ever meant to swallow some exception in a called function, it was doing all the business right there. I guess we've just carried the cruft along and now here we are, eight years later. |
Probably from the |
Sorry to confuse; the code that I posted there is way old and gone. Was just trying to show why this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pathawks Merge as +bug
when CI passes. 😄
You mean appveyor? |
@pathawks Nope! Travis was failing earlier. I kicked it and it passed. 😄 @jekyllbot: merge +bug |
Fixes #5104