null+****@clear*****
null+****@clear*****
2012年 3月 15日 (木) 09:48:29 JST
Susumu Yata 2012-03-15 09:48:29 +0900 (Thu, 15 Mar 2012)
New Revision: 4e1a0f35edde0c39733e3652ab5bb40f7e265eec
Log:
Fix messages of config file parsing errors.
Modified files:
src/groonga.c
Modified: src/groonga.c (+2 -2)
===================================================================
--- src/groonga.c 2012-03-15 09:42:31 +0900 (e9bb829)
+++ src/groonga.c 2012-03-15 09:48:29 +0900 (e83b56f)
@@ -2544,7 +2544,7 @@ main(int argc, char **argv)
} else if (status != CONFIG_FILE_SUCCESS) {
fprintf(stderr, "%s: failed to parse config file: %s (%s)\n",
argv[0], config_path,
- (status == CONFIG_FILE_MALLOC_ERROR) ? strerror(errno) : "Invalid format");
+ (status == CONFIG_FILE_FORMAT_ERROR) ? "Invalid format" : strerror(errno));
return EXIT_FAILURE;
}
} else if (*default_config_path) {
@@ -2553,7 +2553,7 @@ main(int argc, char **argv)
if (status != CONFIG_FILE_SUCCESS && status != CONFIG_FILE_FOPEN_ERROR) {
fprintf(stderr, "%s: failed to parse config file: %s (%s)\n",
argv[0], default_config_path,
- (status == CONFIG_FILE_MALLOC_ERROR) ? strerror(errno) : "Invalid format");
+ (status == CONFIG_FILE_FORMAT_ERROR) ? "Invalid format" : strerror(errno));
return EXIT_FAILURE;
}
}