Do not crash we we cannot create a directory. Just log it...

This commit is contained in:
Flamefire committed 2014-03-20 02:34:56 +01:00
1 parent e9955597b2
commit 713f49230b
1 file changed
+10 -1
+10 -1
View File
@@ -228,7 +228,16 @@ namespace Vocaluxe.Base
private static void _CreateFolder(string path)
{
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
{
try
{
Directory.CreateDirectory(path);
}
catch (Exception e)
{
CLog.LogError("Cannot create directory \"" + path + "\": " + e.Message);
}
}
}
}
}