added logging if cannot create directory.
authorChris Koeritz <fred@gruntose.com>
Tue, 2 Oct 2012 16:20:07 +0000 (12:20 -0400)
committerChris Koeritz <fred@gruntose.com>
Tue, 2 Oct 2012 16:20:07 +0000 (12:20 -0400)
nucleus/library/filesystem/heavy_file_ops.cpp

index 6c4765e9243fb83c88773f1e8cdd8c50ee8ba6dd..0900b4328b9b52d5f4129b0d0158597d59421430 100644 (file)
@@ -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");