diff options
author | marha <marha@users.sourceforge.net> | 2011-02-02 10:11:14 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-02-02 10:11:14 +0000 |
commit | 88055c814288a625ec092c64984154780640b265 (patch) | |
tree | dfa39b04db8ae842aabb9c6bc966530fcbd24db1 /tools/mhmake/src/util.cpp | |
parent | 998605ca09286941d5887aa2c836ebeace0825ce (diff) | |
download | vcxsrv-88055c814288a625ec092c64984154780640b265.tar.gz vcxsrv-88055c814288a625ec092c64984154780640b265.tar.bz2 vcxsrv-88055c814288a625ec092c64984154780640b265.zip |
Print error message when mkdir function fails1.9.3.1
Diffstat (limited to 'tools/mhmake/src/util.cpp')
-rw-r--r-- | tools/mhmake/src/util.cpp | 3 |
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;
}
|