Add troubleshooting output.

This commit is contained in:
Glenn Maynard
2003-09-06 22:32:38 +00:00
parent a87abdb881
commit 46d9ea8488
+8
View File
@@ -345,11 +345,19 @@ bool CreateDirectories( CString Path )
continue;
if(errno != EEXIST)
{
if( LOG )
LOG->Warn("Couldn't create %s: %s", curpath.c_str(), strerror(errno) );
return false;
}
/* Make sure it's a directory. */
if( !IsADirectory(curpath) )
{
if( LOG )
LOG->Warn("Couldn't create %s: path exists and is not a directory", curpath.c_str() );
return false;
}
}
return true;