[Groonga-commit] groonga/groonga at 4d31aa3 [master] grndb: show message on error

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Nov 13 16:00:17 JST 2017


Kouhei Sutou	2017-11-13 16:00:17 +0900 (Mon, 13 Nov 2017)

  New Revision: 4d31aa37991f015ec848ba6cff619bc38e91e8a2
  https://github.com/groonga/groonga/commit/4d31aa37991f015ec848ba6cff619bc38e91e8a2

  Message:
    grndb: show message on error

  Modified files:
    src/grndb.c

  Modified: src/grndb.c (+2 -1)
===================================================================
--- src/grndb.c    2017-11-09 11:57:24 +0900 (6733be93f)
+++ src/grndb.c    2017-11-13 16:00:17 +0900 (119805d06)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2 -*- */
 /*
-  Copyright(C) 2014-2016 Brazil
+  Copyright(C) 2014-2017 Brazil
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -186,6 +186,7 @@ main(int argc, char **argv)
     if (ctx.rc == GRN_SUCCESS) {
       exit_code = run(&ctx, argc, argv);
     } else {
+      fprintf(stderr, "%d: %s\n", ctx.rc, ctx.errbuf);
       exit_code = EXIT_FAILURE;
     }
     grn_ctx_fin(&ctx);
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171113/5ab2cdd2/attachment-0001.htm 



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