lib/self_data.rb in self_data-0.1.0 vs lib/self_data.rb in self_data-0.1.1
- old
+ new
@@ -31,10 +31,10 @@
formats.reduce(read) do |data, format|
fail ConverterNotFound, format unless converters[format]
begin
converters[format].call(data, options)
rescue => e
- raise ConversionError, format, e
+ raise ConversionError.new(format, e)
end
end
end
def read