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:
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user