ext/duckdb/connection.c in duckdb-0.0.4 vs ext/duckdb/connection.c in duckdb-0.0.5

- old
+ new

@@ -25,11 +25,11 @@ obj = allocate(cDuckDBConnection); Data_Get_Struct(obj, rubyDuckDBConnection, ctxcon); if (duckdb_connect(ctxdb->db, &(ctxcon->con)) == DuckDBError) { - rb_raise(rb_eRuntimeError, "connection error"); + rb_raise(eDuckDBError, "connection error"); } // rb_ivar_set(obj, rb_intern("database"), oDuckDBDatabase); return obj; } @@ -43,10 +43,10 @@ Data_Get_Struct(self, rubyDuckDBConnection, ctx); Data_Get_Struct(result, rubyDuckDBResult, ctxr); if (duckdb_query(ctx->con, StringValueCStr(str), &(ctxr->result)) == DuckDBError) { - rb_raise(rb_eRuntimeError, "%s", ctxr->result.error_message); + rb_raise(eDuckDBError, "%s", ctxr->result.error_message); } return result; } void init_duckdb_connection(void)