Using abort instead of puts & exit when jekyll-import gem isn't available.

This commit is contained in:
Parker Moore 2013-02-03 01:24:38 +01:00
parent 9bb0bfc0b2
commit f5137850e4
1 changed files with 1 additions and 2 deletions

View File

@ -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