[Groonga-commit] groonga/groonga at 94167d2 [master] Show more error message when database open is failed

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 29 09:00:01 JST 2015


Kouhei Sutou	2015-10-29 09:00:01 +0900 (Thu, 29 Oct 2015)

  New Revision: 94167d2cf1761141294693f60ddbfce608bca4c1
  https://github.com/groonga/groonga/commit/94167d2cf1761141294693f60ddbfce608bca4c1

  Message:
    Show more error message when database open is failed

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+1 -1)
===================================================================
--- src/groonga.c    2015-10-28 22:44:45 +0900 (8a35b6b)
+++ src/groonga.c    2015-10-29 09:00:01 +0900 (5c8ba4e)
@@ -734,7 +734,7 @@ start_service(grn_ctx *ctx, const char *db_path,
       exit_code = run_server(ctx, db, &ev, dispatcher, handler);
       grn_obj_close(ctx, db);
     } else {
-      fprintf(stderr, "db open failed (%s)\n", db_path);
+      fprintf(stderr, "db open failed (%s): %s\n", db_path, ctx->errbuf);
       exit_code = EXIT_FAILURE;
       send_ready_notify();
     }
-------------- next part --------------
HTML����������������������������...
Download 



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