From: Chris Koeritz Date: Tue, 2 Oct 2012 16:20:07 +0000 (-0400) Subject: added logging if cannot create directory. X-Git-Tag: 2.140.90~1206 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=06cc6d02cae74ce9fd2f60a78538ae66f5119b57;p=feisty_meow.git added logging if cannot create directory. --- diff --git a/nucleus/library/filesystem/heavy_file_ops.cpp b/nucleus/library/filesystem/heavy_file_ops.cpp index 6c4765e9..0900b432 100644 --- a/nucleus/library/filesystem/heavy_file_ops.cpp +++ b/nucleus/library/filesystem/heavy_file_ops.cpp @@ -176,8 +176,10 @@ outcome heavy_file_operations::write_file_chunk(const astring &target, if (byte_start < 0) return BAD_INPUT; filename targ_name(target); - if (!directory::recursive_create(targ_name.dirname().raw())) + if (!directory::recursive_create(targ_name.dirname().raw())) { + LOG(astring("failed to create directory: ") + targ_name.dirname().raw()); return TARGET_DIR_ERROR; + } if (!targ_name.exists()) { huge_file target_file(target, "w");