Add troubleshooting output.
This commit is contained in:
@@ -345,12 +345,20 @@ bool CreateDirectories( CString Path )
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(errno != EEXIST)
|
if(errno != EEXIST)
|
||||||
|
{
|
||||||
|
if( LOG )
|
||||||
|
LOG->Warn("Couldn't create %s: %s", curpath.c_str(), strerror(errno) );
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/* Make sure it's a directory. */
|
/* Make sure it's a directory. */
|
||||||
if( !IsADirectory(curpath) )
|
if( !IsADirectory(curpath) )
|
||||||
|
{
|
||||||
|
if( LOG )
|
||||||
|
LOG->Warn("Couldn't create %s: path exists and is not a directory", curpath.c_str() );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user