Fix AbstractIPS4OAuthDownloader CriticalFailureIntervention

CriticalFailureIntervention's need to be sent to the logger to be handled correctly.
This commit is contained in:
Unnoen 2021-07-04 14:13:05 +10:00
parent be49db3a3d
commit 8b7d3f5e41
No known key found for this signature in database
GPG Key ID: 8F8E42252BA20553

View File

@ -350,9 +350,9 @@ namespace Wabbajack.Lib.Downloaders
{
if (ex.Code == 400)
{
throw new CriticalFailureIntervention(
$"You have been logged out of {siteName} for reasons out of our control, please log back in via the settings panel",
$"Logged out of {siteName}");
Utils.ErrorThrow(new CriticalFailureIntervention(
$"You have been logged out of {siteName} for reasons out of our control, please re-login via the settings panel.",
$"Bad Request: Logged Out - {siteName}"));
}
}