mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Merge pull request #3285 from smoogipoo/more-import-logging
Log the archive when failing to create model
This commit is contained in:
commit
d0c1091e72
@ -350,7 +350,8 @@ namespace osu.Game.Beatmaps
|
|||||||
{
|
{
|
||||||
// let's make sure there are actually .osu files to import.
|
// let's make sure there are actually .osu files to import.
|
||||||
string mapName = reader.Filenames.FirstOrDefault(f => f.EndsWith(".osu"));
|
string mapName = reader.Filenames.FirstOrDefault(f => f.EndsWith(".osu"));
|
||||||
if (string.IsNullOrEmpty(mapName)) throw new InvalidOperationException("No beatmap files found in this beatmap archive.");
|
if (string.IsNullOrEmpty(mapName))
|
||||||
|
throw new InvalidOperationException($"No beatmap files found in this beatmap archive ({reader.Name}).");
|
||||||
|
|
||||||
Beatmap beatmap;
|
Beatmap beatmap;
|
||||||
using (var stream = new StreamReader(reader.GetStream(mapName)))
|
using (var stream = new StreamReader(reader.GetStream(mapName)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user