diff options
Diffstat (limited to 'lib/mixlib/config.rb')
-rw-r--r-- | lib/mixlib/config.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/mixlib/config.rb b/lib/mixlib/config.rb index 3fe77fd..f8b154b 100644 --- a/lib/mixlib/config.rb +++ b/lib/mixlib/config.rb @@ -29,11 +29,7 @@ module Mixlib # === Parameters # <string>:: A filename to read from def from_file(filename) - begin - self.instance_eval(IO.read(filename), filename, 1) - rescue IOError => e - raise IOError, "Cannot open or read #{filename}!" + e - end + self.instance_eval(IO.read(filename), filename, 1) end # Pass Mixlib::Config.configure() a block, and it will yield @@configuration. |