mirror of https://github.com/ppy/osu
Avoid reporting an import as successful when all beatmaps failed to import
This commit is contained in:
parent
21201e616d
commit
233b9eb172
|
@ -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;
|
return beatmaps;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue