mirror of
https://github.com/ppy/osu
synced 2025-02-16 18:17:01 +00:00
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 @@ namespace osu.Game.Beatmaps
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!beatmaps.Any())
|
||||||
|
throw new ArgumentException($"No valid beatmap files found in the beatmap archive.");
|
||||||
|
|
||||||
return beatmaps;
|
return beatmaps;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user