ext/filegdb/geodatabase.cpp in filegdb-0.0.5 vs ext/filegdb/geodatabase.cpp in filegdb-0.0.6
- old
+ new
@@ -37,10 +37,11 @@
std::wstring name = to_wstring(RSTRING_PTR(filename));
hr = CreateGeodatabase(name, *gdb);
if (FGDB_IS_FAILURE(hr)) {
- rb_raise(rb_eRuntimeError, fgdb_error_string(hr));
+ FGDB_RAISE_ERROR(hr);
+ return Qnil;
}
geodatabase *db = new geodatabase();
db->_gdb = gdb;