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
1 changed files with 3 additions and 0 deletions

View File

@ -434,6 +434,9 @@ private List<BeatmapInfo> createBeatmapDifficulties(BeatmapSetInfo beatmapSet, R
}
}
if (!beatmaps.Any())
throw new ArgumentException($"No valid beatmap files found in the beatmap archive.");
return beatmaps;
}
}