File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -244,17 +244,25 @@ int gp_dinglibs_init(const char *config_file,
244
244
}
245
245
246
246
ret = ini_config_parse (file_ctx ,
247
- INI_STOP_ON_NONE , /* error_level */
247
+ INI_STOP_ON_ANY , /* error_level */
248
248
/* Merge section but allow duplicates */
249
249
INI_MS_MERGE |
250
250
INI_MV1S_ALLOW |
251
251
INI_MV2S_ALLOW ,
252
252
INI_PARSE_NOWRAP , /* parse_flags */
253
253
ini_config );
254
254
if (ret ) {
255
+ char * * errors = NULL ;
255
256
/* we had a parsing failure */
256
257
GPDEBUG ("Failed to parse config file: %d (%s)\n" ,
257
258
ret , strerror (ret ));
259
+ if (ini_config_error_count (ini_config )) {
260
+ ini_config_get_errors (ini_config , & errors );
261
+ if (errors ) {
262
+ ini_config_print_errors (stderr , errors );
263
+ ini_config_free_errors (errors );
264
+ }
265
+ }
258
266
ini_config_file_destroy (file_ctx );
259
267
ini_config_destroy (ini_config );
260
268
return ret ;
You can’t perform that action at this time.
0 commit comments