[Groonga-commit] groonga/groonga at be5296a [master] Improve error message on opening input file error

アーカイブの一覧に戻る
Kouhei Sutou null+****@clear*****
Fri Nov 2 13:08:50 JST 2018


Kouhei Sutou	2018-11-02 13:08:50 +0900 (Fri, 02 Nov 2018)

  Revision: be5296ae516a1ea83963bd899e2eadb88659fce6
  https://github.com/groonga/groonga/commit/be5296ae516a1ea83963bd899e2eadb88659fce6

  Message:
    Improve error message on opening input file error

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+2 -2)
===================================================================
--- src/groonga.c    2018-11-01 17:55:28 +0900 (bb53d28aa)
+++ src/groonga.c    2018-11-02 13:08:50 +0900 (42277c2d2)
@@ -3741,8 +3741,8 @@ main(int argc, char **argv)
   if (input_path) {
     input_reader = grn_file_reader_open(&grn_gctx, input_path);
     if (!input_reader) {
-      fprintf(stderr, "can't open input file: %s (%s)\n",
-              input_path, strerror(errno));
+      fprintf(stderr, "can't open input file: <%s>: %s\n",
+              input_path, ctx->errbuf);
       return EXIT_FAILURE;
     }
     batchmode = GRN_TRUE;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181102/2d191a21/attachment.html>


More information about the Groonga-commit mailing list
アーカイブの一覧に戻る