1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Replace insufficiently specific exception type

Resolves compilation failures for the newly-added Android build-only CI
job caused by inspection CA2201 ("Exception type System.Exception is not
sufficiently specific").
This commit is contained in:
Bartłomiej Dach 2021-10-24 17:41:55 +02:00
parent 5f2c5770d4
commit 00732822c3
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using JetBrains.Annotations;
using NUnit.Framework;
using osu.Framework.Allocation;
@ -105,7 +106,7 @@ namespace osu.Game.Tests.Visual.Online
}
else
{
getUser.TriggerFailure(new Exception());
getUser.TriggerFailure(new WebException());
}
return true;