1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Avoid reporting an import as successful when all beatmaps failed to import

This commit is contained in:
Dean Herbert 2024-03-29 17:11:55 +08:00
parent 21201e616d
commit 233b9eb172
No known key found for this signature in database

View File

@ -434,6 +434,9 @@ namespace osu.Game.Beatmaps
}
}
if (!beatmaps.Any())
throw new ArgumentException($"No valid beatmap files found in the beatmap archive.");
return beatmaps;
}
}