Removed one exception #594

Closed
wants to merge 1 commit into
from

Projects

None yet

4 participants

@m-r-r
m-r-r commented Jul 5, 2012

Hello,

An exception was throwed in jekyll/lib/converible.rb, line 81 when there was a Liquid error:

begin
 self.content = Liquid::Template.parse(self.content).render(payload, info)
rescue => e
 puts "Liquid Exception: #{e.message} in #{self.name}"
 #  The variable self.name was not found 
end

I replaced self.name by @name and now it works.

Contributor
mojombo commented Dec 16, 2012

Curious. Do you have the stack trace of this exception? self.name should work in all instances, and is the preferable style.

Owner
parkr commented Dec 22, 2012

@m-r-r Please respond – this will be closed soon otherwise, as it's not a desirable change if it can be avoided.

@parkr parkr closed this Feb 6, 2013
@jekyllbot jekyllbot locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.