diff --git a/src/obidms.c b/src/obidms.c index 872f383..afdfc27 100644 --- a/src/obidms.c +++ b/src/obidms.c @@ -282,7 +282,7 @@ OBIDMS_p obi_create_dms(const char* dms_path) if (mkdirat(dms_file_descriptor, INDEXER_DIR_NAME, 00777) < 0) { obi_set_errno(OBI_INDEXER_ERROR); - obidebug(1, "\nProblem creating an indexer directory"); + obidebug(1, "\nProblem creating the indexer directory"); return NULL; } @@ -290,7 +290,15 @@ OBIDMS_p obi_create_dms(const char* dms_path) if (mkdirat(dms_file_descriptor, VIEW_DIR_NAME, 00777) < 0) { obi_set_errno(OBIVIEW_ERROR); - obidebug(1, "\nProblem creating a view directory"); + obidebug(1, "\nProblem creating the view directory"); + return NULL; + } + + // Create the taxonomy directory + if (mkdirat(dms_file_descriptor, TAXONOMY_DIR_NAME, 00777) < 0) + { + obi_set_errno(OBIVIEW_ERROR); + obidebug(1, "\nProblem creating the taxonomy directory"); return NULL; }