mirror of https://github.com/ppy/osu
Improve notification display when score import fails
This commit is contained in:
parent
81130eacd1
commit
d1d82d2b49
|
@ -149,7 +149,7 @@ await Task.WhenAll(tasks.Select(async task =>
|
|||
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 @@ public ScoreImporter(RulesetStore rulesets, Func<BeatmapManager> beatmaps, Stora
|
|||
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