Using abort instead of puts & exit when jekyll-import gem isn't available.
This commit is contained in:
parent
9bb0bfc0b2
commit
f5137850e4
|
@ -68,8 +68,7 @@ command :import do |c|
|
||||||
begin
|
begin
|
||||||
require 'jekyll-import'
|
require 'jekyll-import'
|
||||||
rescue
|
rescue
|
||||||
puts "You must install the 'jekyll-import' gem before continuing."
|
abort "You must install the 'jekyll-import' gem before continuing."
|
||||||
exit(-1)
|
|
||||||
end
|
end
|
||||||
Jekyll::Commands::Import.process(args.first, options)
|
Jekyll::Commands::Import.process(args.first, options)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue