Fix 'undefined method `gsub' for nil:NilClass' when undefined method is called.

Closes #1388.
http://stackoverflow.com/questions/18037596/error-undefined-method-gsub-for-nilnilclass/18038912
This commit is contained in:
Parker Moore 2013-08-06 20:05:38 +02:00
parent 14daff8965
commit e3abda9897
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ module Jekyll
# #
# Returns the formatted message # Returns the formatted message
def message(topic, message) def message(topic, message)
formatted_topic(topic) + message.gsub(/\s+/, ' ') formatted_topic(topic) + message.to_s.gsub(/\s+/, ' ')
end end
# Public: Format the topic # Public: Format the topic