diff options
author | James Golick <james@giraffesoft.ca> | 2009-08-23 13:27:59 -0400 |
---|---|---|
committer | James Golick <james@giraffesoft.ca> | 2009-08-23 13:27:59 -0400 |
commit | e2949c0cf4e660ae8538d9bce66d6bdad882ffdb (patch) | |
tree | 2aecfa0c10e2b3eb83101d3c497cc32b60c2c2ed /lib/mixlib | |
parent | 29a7d114fc5e0a864b0a40bc149d59ac7d8165c4 (diff) | |
download | mixlib-config-e2949c0cf4e660ae8538d9bce66d6bdad882ffdb.tar.gz |
remove the rescue stuff, because ruby'll do that for us
Diffstat (limited to 'lib/mixlib')
-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. |