mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:03:11 +08:00
Improve notification display when score import fails
This commit is contained in:
parent
81130eacd1
commit
d1d82d2b49
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user