lib/metastore/storage_factory.rb in metastore-0.3.0 vs lib/metastore/storage_factory.rb in metastore-0.4.0
- old
+ new
@@ -3,9 +3,9 @@
def self.from_sym(symbol)
klass = symbol.to_s.upcase
Storage.const_get(klass)
rescue NameError => e
- raise Errors::UnknownStorageType.new(e.message)
+ raise Errors::UnknownStorageType, e.message
end
end
end