mirror of
https://github.com/ppy/osu
synced 2025-03-02 17:42:13 +00: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;
|
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;
|
notification.State = ProgressNotificationState.Cancelled;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -62,6 +62,11 @@ namespace osu.Game.Scoring
|
|||||||
api.Queue(req);
|
api.Queue(req);
|
||||||
return null;
|
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