Include the failed directory name if _mkdir fails.

( cherry-picked from 767d301911e31216e0f7c2659e79cf8f3763575e )

http://b.android.com/202972 shows a failure here, but we lack the
information to know what the bad input was. My guess is that it's
caused by POSIX path separators, but we should add more details to
the error message for the future.

Bug: http://b.android.com/202972
Bug: 29091703
Change-Id: I6fa131604e0268c6ddbea5c9d1499897754f197d
diff --git a/io_delegate.cpp b/io_delegate.cpp
index aabe4cb..66891dd 100644
--- a/io_delegate.cpp
+++ b/io_delegate.cpp
@@ -99,8 +99,9 @@
 #endif
     // On darwin when you try to mkdir("/", ...) we get EISDIR.
     if (!success && (errno != EEXIST && errno != EISDIR)) {
-       LOG(ERROR) << "Error while creating directories: " << strerror(errno);
-       return false;
+      LOG(ERROR) << "Error while creating " << base_dir << ": "
+                 << strerror(errno);
+      return false;
     }
   }
   return true;