lib/rib.rb in rib-1.2.0 vs lib/rib.rb in rib-1.2.1
- old
+ new
@@ -66,10 +66,10 @@
def require_config
return unless config_path
result = require(config_path)
Rib.say("Config loaded from: #{config_path}") if $VERBOSE && result
result
- rescue Exception => e
+ rescue StandardError, LoadError, SyntaxError => e
Rib.warn("Error loading #{config[:config]}\n" \
" #{Rib::API.format_error(e)}")
end
# The config path where Rib tries to load upon Rib.shell