darwinup: Display more helpful error if unable to create a depot.
--- trunk/darwinup/Depot.cpp 2012-02-08 02:31:25 UTC (rev 1008)
+++ trunk/darwinup/Depot.cpp 2012-02-08 21:39:56 UTC (rev 1009)
@@ -120,6 +120,11 @@
}
int res = mkdir(m_depot_path, m_depot_mode);
+ if (res && errno != EEXIST) {
+ perror(m_depot_path);
+ return res;
+ }
+
res = chmod(m_depot_path, m_depot_mode);
res = chown(m_depot_path, uid, gid);
if (res && errno != EEXIST) {