From 713f49230bc43330093d3631e117a8996820ecf1 Mon Sep 17 00:00:00 2001 From: Flamefire Date: Thu, 20 Mar 2014 02:34:56 +0100 Subject: [PATCH] Do not crash we we cannot create a directory. Just log it... --- Vocaluxe/Base/CSettings.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Vocaluxe/Base/CSettings.cs b/Vocaluxe/Base/CSettings.cs index f25ba032..7c57abf1 100644 --- a/Vocaluxe/Base/CSettings.cs +++ b/Vocaluxe/Base/CSettings.cs @@ -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); + } + } } } } \ No newline at end of file