Log the exception that caused to loading of rulesets to fail.

This commit is contained in:
miterosan 2019-09-29 19:25:44 +02:00
parent 12b027f2c3
commit 9f498d2990
1 changed files with 2 additions and 2 deletions

View File

@ -135,9 +135,9 @@ private static void loadFromDisk()
foreach (string file in files.Where(f => !Path.GetFileName(f).Contains("Tests"))) foreach (string file in files.Where(f => !Path.GetFileName(f).Contains("Tests")))
loadRulesetFromFile(file); loadRulesetFromFile(file);
} }
catch catch(Exception e)
{ {
Logger.Log($"Could not load rulesets from directory {Environment.CurrentDirectory}"); Logger.Error(e, $"Could not load rulesets from directory {Environment.CurrentDirectory}");
} }
} }