Navigation Menu

Skip to content

Commit

Permalink
Use named error number instead of unknown -1
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 4, 2014
1 parent 1e2d084 commit 9f60e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cpp
Expand Up @@ -1185,7 +1185,7 @@ static int mrn_set_geometry(grn_ctx *ctx, grn_obj *buf,

geometry = Geometry::construct(&buffer, wkb, wkb_size);
if (!geometry) {
return -1;
return ER_CANT_CREATE_GEOMETRY_OBJECT;
}
switch (geometry->get_class_info()->m_type_id) {
case Geometry::wkb_point:
Expand Down

0 comments on commit 9f60e6c

Please sign in to comment.