In create mode, if the database directory already exists, adu prints
an error message of the form
main: directory exists.
This is a bit sparse, so let's add a log message which prints the
directory name. With the patch applied the output becomes
open_dir_table: could not create /ebio/maan/tmp/adu-lists/
main: directory exists
goto out;
NOTICE_LOG("creating dir table\n");
ret = osl(osl_create_table(&dir_table_desc));
- if (ret < 0)
+ if (ret < 0) {
+ ERROR_LOG("could not create %s\n", dir_table_desc.dir);
goto out;
+ }
}
INFO_LOG("opening dir table\n");
return osl(osl_open_table(&dir_table_desc, &dir_table));