mirror of
https://github.com/ppy/osu
synced 2025-03-01 09:01:22 +00:00
Fix wrong path being used in fail handler
This commit is contained in:
parent
3dfbb47b01
commit
9a2cc04361
@ -126,7 +126,7 @@ namespace osu.Game.Overlays
|
|||||||
request.Failure += ex =>
|
request.Failure += ex =>
|
||||||
{
|
{
|
||||||
if (ex is not OperationCanceledException)
|
if (ex is not OperationCanceledException)
|
||||||
Schedule(onFail);
|
Schedule(onFail, request.Path);
|
||||||
};
|
};
|
||||||
|
|
||||||
api.PerformAsync(request);
|
api.PerformAsync(request);
|
||||||
@ -155,11 +155,11 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onFail()
|
private void onFail(string originalPath)
|
||||||
{
|
{
|
||||||
path.Value = "error";
|
path.Value = "error";
|
||||||
LoadDisplay(articlePage = new WikiArticlePage($@"{api.WebsiteRootUrl}/wiki/",
|
LoadDisplay(articlePage = new WikiArticlePage($@"{api.WebsiteRootUrl}/wiki/",
|
||||||
$"Something went wrong when trying to fetch page \"{path.Value}\".\n\n[Return to the main page](Main_Page)."));
|
$"Something went wrong when trying to fetch page \"{originalPath}\".\n\n[Return to the main page](Main_Page)."));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showParentPage()
|
private void showParentPage()
|
||||||
|
Loading…
Reference in New Issue
Block a user