Colorized error for sitemap_generator.rb

This commit is contained in:
Parker Moore 2013-03-10 02:25:20 +01:00
parent 9a9c4a09b1
commit 95a3e46254

View File

@ -36,6 +36,7 @@
#
# Modified for Octopress by John W. Long
#
require File.expand_path('../../lib/colors.rb', __FILE__)
require 'rexml/document'
require 'fileutils'
@ -193,7 +194,7 @@ module Jekyll
changefreq.text = change_frequency
url.add_element(changefreq)
else
puts "ERROR: Invalid Change Frequency In #{page_or_post.name}"
$stderr.puts "ERROR: Invalid Change Frequency In #{page_or_post.name}".red
end
end
@ -204,7 +205,7 @@ module Jekyll
priority.text = page_or_post.data[PRIORITY_CUSTOM_VARIABLE_NAME]
url.add_element(priority)
else
puts "ERROR: Invalid Priority In #{page_or_post.name}"
$stderr.puts "ERROR: Invalid Priority In #{page_or_post.name}".red
end
end