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
|
||||
require 'jekyll-import'
|
||||
rescue
|
||||
puts "You must install the 'jekyll-import' gem before continuing."
|
||||
exit(-1)
|
||||
abort "You must install the 'jekyll-import' gem before continuing."
|
||||
end
|
||||
Jekyll::Commands::Import.process(args.first, options)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue