Use helper method #deprecation_message in Deprecator.no_subcommand.
This commit is contained in:
parent
6ca8baa572
commit
a27313b1d0
|
@ -18,7 +18,7 @@ module Jekyll
|
||||||
|
|
||||||
def self.no_subcommand(args)
|
def self.no_subcommand(args)
|
||||||
if args.size > 0 && args.first =~ /^--/ && !%w[--help --version].include?(args.first)
|
if args.size > 0 && args.first =~ /^--/ && !%w[--help --version].include?(args.first)
|
||||||
Jekyll.logger.error "Deprecation:", "Jekyll now uses subcommands instead of just \
|
deprecation_message "Jekyll now uses subcommands instead of just \
|
||||||
switches. Run `jekyll --help' to find out more."
|
switches. Run `jekyll --help' to find out more."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -45,7 +45,7 @@ module Jekyll
|
||||||
The full error message from Ruby is: '#{e.message}'
|
The full error message from Ruby is: '#{e.message}'
|
||||||
|
|
||||||
If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
|
If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
|
||||||
MSG
|
MSG
|
||||||
raise Errors::MissingDependencyException.new(name)
|
raise Errors::MissingDependencyException.new(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue