Navigation Menu

Skip to content

Commit

Permalink
Change error message for geometry type. refs #1195
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentoku committed Feb 23, 2012
1 parent 442227c commit d515cc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ha_mroonga.cc
Expand Up @@ -1110,7 +1110,9 @@ static int mrn_set_geometry(grn_ctx *ctx, grn_obj *buf,
break;
}
default:
error = HA_ERR_UNSUPPORTED;
my_printf_error(ER_MRN_GEOMETRY_NOT_SUPPORT_NUM,
ER_MRN_GEOMETRY_NOT_SUPPORT_STR, MYF(0));
error = ER_MRN_GEOMETRY_NOT_SUPPORT_NUM;
break;
}
delete geometry;
Expand Down
2 changes: 2 additions & 0 deletions mrn_err.h
Expand Up @@ -22,5 +22,7 @@
#define ER_MRN_INVALID_TABLE_PARAM_STR "The table parameter '%-.64s' is invalid"
#define ER_MRN_CHARSET_NOT_SUPPORT_NUM 16502
#define ER_MRN_CHARSET_NOT_SUPPORT_STR "The character set '%s[%s]' is not supported by groonga"
#define ER_MRN_GEOMETRY_NOT_SUPPORT_NUM 16503
#define ER_MRN_GEOMETRY_NOT_SUPPORT_STR "This geometry type is not supported. Groonga is supported point only"

#endif /* _mrn_err_h */

0 comments on commit d515cc3

Please sign in to comment.