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)
|
||||
{
|
||||
if ((int)e.ApiResultCode == -26)
|
||||
{
|
||||
return new LoginReturnMessage("Two-Factor Authentication needs to be disabled before login!", true);
|
||||
}
|
||||
return e.ApiResultCode switch
|
||||
{
|
||||
ApiResultCode.TwoFactorAuthenticationError => new LoginReturnMessage(
|
||||
$"Two-Factor Authentication needs to be disabled before login! {e.Message}", true),
|
||||
ApiResultCode.InternalError => new LoginReturnMessage(
|
||||
$"Internal error occured! Please report this to the Wabbajack Team! {e.Message}", true),
|
||||
_ => new LoginReturnMessage($"Error during login: {e.Message}", true)
|
||||
|
@ -25,7 +25,7 @@
|
||||
<Version>1.11.23</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="MegaApiClient">
|
||||
<Version>1.7.1</Version>
|
||||
<Version>1.8.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.CSharp">
|
||||
<Version>4.7.0</Version>
|
||||
|
Loading…
Reference in New Issue
Block a user