add a better failure message for account link status 2
This commit is contained in:
parent
6ee4b4eab8
commit
c27b01318b
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,9 @@ impl AccountLinker {
|
||||||
29 => {
|
29 => {
|
||||||
return Err(AccountLinkError::AuthenticatorPresent);
|
return Err(AccountLinkError::AuthenticatorPresent);
|
||||||
}
|
}
|
||||||
|
2 => {
|
||||||
|
return Err(AccountLinkError::GenericFailure);
|
||||||
|
}
|
||||||
1 => {
|
1 => {
|
||||||
let mut account = resp.to_steam_guard_account();
|
let mut account = resp.to_steam_guard_account();
|
||||||
account.device_id = self.device_id.clone();
|
account.device_id = self.device_id.clone();
|
||||||
|
@ -126,6 +129,8 @@ pub enum AccountLinkError {
|
||||||
MustConfirmEmail,
|
MustConfirmEmail,
|
||||||
#[error("Authenticator is already present.")]
|
#[error("Authenticator is already present.")]
|
||||||
AuthenticatorPresent,
|
AuthenticatorPresent,
|
||||||
|
#[error("Steam was unable to link the authenticator to the account. No additional information about this error is available. This is a Steam error, not a steamguard-cli error. Try adding a phone number to your Steam account, or try again later.")]
|
||||||
|
GenericFailure,
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
Unknown(#[from] anyhow::Error),
|
Unknown(#[from] anyhow::Error),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue