mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
commit
ea1b4a1661
@ -44,12 +44,10 @@ namespace Wabbajack.Lib.Downloaders
|
|||||||
}
|
}
|
||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
if ((int)e.ApiResultCode == -26)
|
|
||||||
{
|
|
||||||
return new LoginReturnMessage("Two-Factor Authentication needs to be disabled before login!", true);
|
|
||||||
}
|
|
||||||
return e.ApiResultCode switch
|
return e.ApiResultCode switch
|
||||||
{
|
{
|
||||||
|
ApiResultCode.TwoFactorAuthenticationError => new LoginReturnMessage(
|
||||||
|
$"Two-Factor Authentication needs to be disabled before login! {e.Message}", true),
|
||||||
ApiResultCode.InternalError => new LoginReturnMessage(
|
ApiResultCode.InternalError => new LoginReturnMessage(
|
||||||
$"Internal error occured! Please report this to the Wabbajack Team! {e.Message}", true),
|
$"Internal error occured! Please report this to the Wabbajack Team! {e.Message}", true),
|
||||||
_ => new LoginReturnMessage($"Error during login: {e.Message}", true)
|
_ => new LoginReturnMessage($"Error during login: {e.Message}", true)
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<Version>1.11.23</Version>
|
<Version>1.11.23</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="MegaApiClient">
|
<PackageReference Include="MegaApiClient">
|
||||||
<Version>1.7.1</Version>
|
<Version>1.8.0</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.CSharp">
|
<PackageReference Include="Microsoft.CSharp">
|
||||||
<Version>4.7.0</Version>
|
<Version>4.7.0</Version>
|
||||||
|
Loading…
Reference in New Issue
Block a user