Provide clearer error reporting if Depot mkdir fails.
--- branches/PR-9697169/darwinup/Depot.cpp 2012-02-03 09:32:45 UTC (rev 1003)
+++ branches/PR-9697169/darwinup/Depot.cpp 2012-02-03 09:33:41 UTC (rev 1004)
@@ -120,6 +120,11 @@
}
int res = mkdir(m_depot_path, m_depot_mode);
+ if (res) {
+ 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) {