mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Using new Enum value for MEGA ApiResultCode
This commit is contained in:
parent
a864677463
commit
d25915c4f5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user