From d756387ad436bc60563e44c866fd5831b9351723 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Wed, 16 Apr 2014 13:04:09 +0300 Subject: We rescue 'LoadError' in Manager Let's raise OxidizedError instead for known dependencies --- lib/oxidized/output/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/output') diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb index 6f232cb..2b07e05 100644 --- a/lib/oxidized/output/git.rb +++ b/lib/oxidized/output/git.rb @@ -3,7 +3,7 @@ class Git < Output begin require 'grit' rescue LoadError - raise LoadError, 'grit not found: sudo gem install grit' + raise OxidizedError, 'grit not found: sudo gem install grit' end require 'oxidized/fix/grit' if RUBY_VERSION[0..1] == '2.' include Grit -- cgit v1.2.1