Skip to content

Commit

Permalink
Merge pull request #21045 from peppy/improve-ruleset-load-fail-message
Browse files Browse the repository at this point in the history
Improve messaging when ruleset load fails
  • Loading branch information
smoogipoo authored Nov 1, 2022
2 parents 4213abf + 706adfb commit 00bd77c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osu.Game/Rulesets/RulesetStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private void addRuleset(Assembly assembly)
}
catch (Exception e)
{
LogFailedLoad(assembly.FullName, e);
LogFailedLoad(assembly.GetName().Name.Split('.').Last(), e);
}
}

Expand All @@ -168,14 +168,14 @@ public void Dispose()
GC.SuppressFinalize(this);
}

protected virtual void Dispose(bool disposing)
protected void Dispose(bool disposing)
{
AppDomain.CurrentDomain.AssemblyResolve -= resolveRulesetDependencyAssembly;
}

protected void LogFailedLoad(string name, Exception exception)
{
Logger.Log($"Could not load ruleset {name}. Please check for an update from the developer.", level: LogLevel.Error);
Logger.Log($"Could not load ruleset \"{name}\". Please check for an update from the developer.", level: LogLevel.Error);
Logger.Log($"Ruleset load failed: {exception}");
}

Expand Down

0 comments on commit 00bd77c

Please sign in to comment.