Skip to content

Commit

Permalink
Inline external link error message constant
Browse files Browse the repository at this point in the history
Not really worth it to split out the const, for one, and even if it was,
then it _definitely_ should not live in `Logger` of all places.
  • Loading branch information
bdach committed Sep 14, 2023
1 parent 0778714 commit 9bc79c6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion osu.Framework.Android/AndroidGameHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public override void OpenUrlExternally(string url)
}
catch (Exception ex)
{
Logger.Error(ex, Logger.EXTERNAL_LINK_OPEN_ERROR_MESSAGE);
Logger.Error(ex, "Unable to open external link.");
}
}

Expand Down
2 changes: 1 addition & 1 deletion osu.Framework.iOS/IOSGameHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public override void OpenUrlExternally(string url)
}
catch (Exception ex)
{
Logger.Error(ex, Logger.EXTERNAL_LINK_OPEN_ERROR_MESSAGE);
Logger.Error(ex, "Unable to open external link.");
}
}

Expand Down
2 changes: 0 additions & 2 deletions osu.Framework/Logging/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ public static Storage Storage
/// </summary>
public string Filename => $@"{Name}.log";

public const string EXTERNAL_LINK_OPEN_ERROR_MESSAGE = "Unable to open external link.";

public int TotalLogOperations => logCount.Value;

private readonly GlobalStatistic<int> logCount;
Expand Down
2 changes: 1 addition & 1 deletion osu.Framework/Platform/DesktopGameHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public override void OpenUrlExternally(string url)
}
catch (Exception ex)
{
Logger.Error(ex, Logger.EXTERNAL_LINK_OPEN_ERROR_MESSAGE);
Logger.Error(ex, "Unable to open external link.");
}
}

Expand Down

0 comments on commit 9bc79c6

Please sign in to comment.