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:
parent
adab9f0e48
commit
1050d7da34
@ -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}");
|
||||
|
Loading…
Reference in New Issue
Block a user