Error message is red
This commit is contained in:
parent
ef9d8ddb7d
commit
ef51b0f9e4
|
@ -17,7 +17,7 @@ module Jekyll
|
||||||
|
|
||||||
def self.deprecation_message(args, deprecated_argument, message)
|
def self.deprecation_message(args, deprecated_argument, message)
|
||||||
if args.include?(deprecated_argument)
|
if args.include?(deprecated_argument)
|
||||||
Jekyll.warn "Deprecation:", message
|
Jekyll.error "Deprecation:", message
|
||||||
exit(1)
|
exit(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,6 +20,16 @@ module Jekyll
|
||||||
$stderr.puts (Jekyll.message(topic, message)).yellow
|
$stderr.puts (Jekyll.message(topic, message)).yellow
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Public: Print a jekyll error message to stderr
|
||||||
|
#
|
||||||
|
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
|
||||||
|
# message - the message detail
|
||||||
|
#
|
||||||
|
# Returns nothing
|
||||||
|
def error(topic, message)
|
||||||
|
$stderr.puts (Jekyll.message(topic, message)).red
|
||||||
|
end
|
||||||
|
|
||||||
# Public: Build a Jekyll topic method
|
# Public: Build a Jekyll topic method
|
||||||
#
|
#
|
||||||
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
|
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
|
||||||
|
|
Loading…
Reference in New Issue