mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +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
|
else
|
||||||
paths.Add(storage.GetFullPath(directory));
|
paths.Add(storage.GetFullPath(directory));
|
||||||
}
|
}
|
||||||
catch (IOException e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
// Catch any errors when enumerating files
|
// Catch any errors when enumerating files
|
||||||
Logger.Log($"Error when enumerating files in {directoryStorage.GetFullPath(string.Empty)}: {e}");
|
Logger.Log($"Error when enumerating files in {directoryStorage.GetFullPath(string.Empty)}: {e}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (IOException e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
// Catch any errors when enumerating directories
|
// Catch any errors when enumerating directories
|
||||||
Logger.Log($"Error when enumerating directories in {storage.GetFullPath(string.Empty)}: {e}");
|
Logger.Log($"Error when enumerating directories in {storage.GetFullPath(string.Empty)}: {e}");
|
||||||
|
Loading…
Reference in New Issue
Block a user