mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-02-28 16:31:44 -05:00
Colorized error for sitemap_generator.rb
This commit is contained in:
parent
9a9c4a09b1
commit
95a3e46254
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user