lib/figleaf/settings.rb in figleaf-0.2.2 vs lib/figleaf/settings.rb in figleaf-0.2.3

- old
+ new

@@ -60,11 +60,11 @@ def load_file(file_path, env = nil) property = YAML.load(ERB.new(IO.read(file_path)).result) property = property[env] if env use_hashie_if_hash(property) - rescue Psych::SyntaxError - raise InvalidYAML, "#{file_path} has invalid YAML" + rescue Psych::SyntaxError => e + raise InvalidYAML, "#{file_path} has invalid YAML\n" + e.message end def root return Rails.root if defined?(Rails) Pathname.new('.')