diff options
-rw-r--r-- | lib/facter/application.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/facter/application.rb b/lib/facter/application.rb index 51dbd14..36d070b 100644 --- a/lib/facter/application.rb +++ b/lib/facter/application.rb @@ -68,8 +68,13 @@ module Facter require 'rdoc/ri/ri_paths' require 'rdoc/usage' puts RDoc.usage - ensure exit + rescue LoadError + $stderr.puts "No help available unless your RDoc has RDoc.usage" + exit(1) + rescue => e + $stderr.puts "fatal: #{e}" + exit(1) end end end.parse! |