1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 14:02:55 +08:00

Log delete failure

This commit is contained in:
ansel 2023-01-18 17:30:34 +03:00
parent 0f3a586738
commit 18baf3dd5d

View File

@ -22,6 +22,7 @@ using System.Collections.Specialized;
using System.Diagnostics; using System.Diagnostics;
using osu.Framework.Extensions.LocalisationExtensions; using osu.Framework.Extensions.LocalisationExtensions;
using osu.Framework.Localisation; using osu.Framework.Localisation;
using osu.Framework.Logging;
using osu.Framework.Platform; using osu.Framework.Platform;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osu.Game.Online.API; using osu.Game.Online.API;
@ -419,8 +420,9 @@ namespace osu.Game.Overlays.Comments
if (!ShowDeleted.Value) if (!ShowDeleted.Value)
Hide(); Hide();
}); });
request.Failure += _ => Schedule(() => request.Failure += e => Schedule(() =>
{ {
Logger.Error(e, "Failed to delete comment");
actionsLoading.Hide(); actionsLoading.Hide();
actionsContainer.Show(); actionsContainer.Show();
}); });