1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Improve notification display when score import fails

This commit is contained in:
Dean Herbert 2023-09-26 15:00:56 +09:00
parent 81130eacd1
commit d1d82d2b49
2 changed files with 6 additions and 1 deletions

View File

@ -149,7 +149,7 @@ namespace osu.Game.Database
return imported;
}
notification.Text = $"{HumanisedModelName.Humanize(LetterCasing.Title)} import failed!";
notification.Text = $"{HumanisedModelName.Humanize(LetterCasing.Title)} import failed! Check logs for more information.";
notification.State = ProgressNotificationState.Cancelled;
}
else

View File

@ -62,6 +62,11 @@ namespace osu.Game.Scoring
api.Queue(req);
return null;
}
catch (Exception)
{
Logger.Log($@"Score '{archive.Name}' failed to import: failed to parse replay headers.", LoggingTarget.Database);
return null;
}
}
}