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 @@ 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

View File

@ -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;
}
}
}