1
0
mirror of https://github.com/ppy/osu synced 2025-03-20 18:08:25 +00:00

Merge pull request from miterosan/rulesets_fail_load_exception_log

Log when loading rulesets from disk fails
This commit is contained in:
Dan Balasescu 2019-10-01 15:52:42 +09:00 committed by GitHub
commit 8d6851cc31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,9 +135,9 @@ namespace osu.Game.Rulesets
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}");
} }
} }