[Groonga-commit] groonga/groonga at ff9ba52 [master] Add grn_get_global_error_message()

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jan 16 13:40:36 JST 2016


Kouhei Sutou	2016-01-16 13:40:36 +0900 (Sat, 16 Jan 2016)

  New Revision: ff9ba5254d03c212ec1f34312024191dcf8ea707
  https://github.com/groonga/groonga/commit/ff9ba5254d03c212ec1f34312024191dcf8ea707

  Message:
    Add grn_get_global_error_message()

  Modified files:
    include/groonga/groonga.h
    lib/ctx.c

  Modified: include/groonga/groonga.h (+2 -0)
===================================================================
--- include/groonga/groonga.h    2016-01-16 13:36:15 +0900 (27cd62e)
+++ include/groonga/groonga.h    2016-01-16 13:40:36 +0900 (72863d0)
@@ -130,6 +130,8 @@ typedef enum {
 GRN_API grn_rc grn_init(void);
 GRN_API grn_rc grn_fin(void);
 
+GRN_API const char *grn_get_global_error_message(void);
+
 typedef enum {
   GRN_ENC_DEFAULT = 0,
   GRN_ENC_NONE,

  Modified: lib/ctx.c (+6 -0)
===================================================================
--- lib/ctx.c    2016-01-16 13:36:15 +0900 (9536b76)
+++ lib/ctx.c    2016-01-16 13:40:36 +0900 (56e5fb4)
@@ -295,6 +295,12 @@ grn_str2timeval(const char *str, uint32_t str_len, grn_timeval *tv)
   return GRN_SUCCESS;
 }
 
+const char *
+grn_get_global_error_message(void)
+{
+  return grn_gctx.errbuf;
+}
+
 #ifdef USE_MEMORY_DEBUG
 inline static void
 grn_alloc_info_set_backtrace(char *buffer, size_t size)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index