Revision
1004
Author
mww@apple.com
Date
2012-02-03 01:33:41 -0800 (Fri, 03 Feb 2012)

Log Message

Provide clearer error reporting if Depot mkdir fails.

Modified Paths

Diff

Modified: branches/PR-9697169/darwinup/Depot.cpp (1003 => 1004)


--- 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) {