diff options
Diffstat (limited to 'lib/oxidized/output')
-rw-r--r-- | lib/oxidized/output/git.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb index ff9237b..6f232cb 100644 --- a/lib/oxidized/output/git.rb +++ b/lib/oxidized/output/git.rb @@ -1,6 +1,10 @@ module Oxidized class Git < Output - require 'grit' + begin + require 'grit' + rescue LoadError + raise LoadError, 'grit not found: sudo gem install grit' + end require 'oxidized/fix/grit' if RUBY_VERSION[0..1] == '2.' include Grit |