mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 01:08:26 -05:00
Using abort instead of puts & exit when jekyll-import gem isn't available.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user