lib/longleaf/services/application_config_deserializer.rb in longleaf-0.1.0.pre.2 vs lib/longleaf/services/application_config_deserializer.rb in longleaf-0.1.0.pre.3
- old
+ new
@@ -33,14 +33,12 @@
def self.from_yaml(config_path)
begin
YAML.load_file(config_path)
rescue Errno::ENOENT => err
raise Longleaf::ConfigurationError.new(
- "Cannot load application configuration, file #{config_path} does not exist.")
+ "Configuration file #{config_path} does not exist.")
rescue => err
- raise Longleaf::ConfigurationError.new(
- %Q(Failed to load application configuration due to the following reason:
- #{err.message}))
+ raise Longleaf::ConfigurationError.new(err)
end
end
end
end
\ No newline at end of file