aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-02 10:11:14 +0000
committermarha <marha@users.sourceforge.net>2011-02-02 10:11:14 +0000
commit88055c814288a625ec092c64984154780640b265 (patch)
treedfa39b04db8ae842aabb9c6bc966530fcbd24db1 /tools
parent998605ca09286941d5887aa2c836ebeace0825ce (diff)
downloadvcxsrv-88055c814288a625ec092c64984154780640b265.tar.gz
vcxsrv-88055c814288a625ec092c64984154780640b265.tar.bz2
vcxsrv-88055c814288a625ec092c64984154780640b265.zip
Print error message when mkdir function fails1.9.3.1
Diffstat (limited to 'tools')
-rw-r--r--tools/mhmake/src/util.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/mhmake/src/util.cpp b/tools/mhmake/src/util.cpp
index 46f9b9edb..43104adea 100644
--- a/tools/mhmake/src/util.cpp
+++ b/tools/mhmake/src/util.cpp
@@ -758,7 +758,10 @@ bool MakeDirs(const fileinfo *pDir)
if (!pDir->GetDate().DoesExist())
{ /* Create directory */
if (-1==mkdir(pDir->GetFullFileName().c_str(),S_IRWXU))
+ {
+ cerr << "mkdir function failed for directory " << QuoteFileName(pDir->GetFullFileName()) << endl;
return false;
+ }
}
return true;
}