1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:02:55 +08:00

Use more generic exception type (issue reported AggegateException)

This commit is contained in:
Dean Herbert 2022-11-17 13:36:16 +09:00
parent adab9f0e48
commit 1050d7da34

View File

@ -45,14 +45,14 @@ namespace osu.Game.Database
else
paths.Add(storage.GetFullPath(directory));
}
catch (IOException e)
catch (Exception e)
{
// Catch any errors when enumerating files
Logger.Log($"Error when enumerating files in {directoryStorage.GetFullPath(string.Empty)}: {e}");
}
}
}
catch (IOException e)
catch (Exception e)
{
// Catch any errors when enumerating directories
Logger.Log($"Error when enumerating directories in {storage.GetFullPath(string.Empty)}: {e}");