From c27b01318b6185638a6c1b72e0e4c6b8a7a2cb31 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Sun, 2 Jan 2022 09:46:01 -0500 Subject: [PATCH] add a better failure message for account link status 2 --- steamguard/src/accountlinker.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/steamguard/src/accountlinker.rs b/steamguard/src/accountlinker.rs index d45e569..7a6e036 100644 --- a/steamguard/src/accountlinker.rs +++ b/steamguard/src/accountlinker.rs @@ -61,6 +61,9 @@ impl AccountLinker { 29 => { return Err(AccountLinkError::AuthenticatorPresent); } + 2 => { + return Err(AccountLinkError::GenericFailure); + } 1 => { let mut account = resp.to_steam_guard_account(); account.device_id = self.device_id.clone(); @@ -126,6 +129,8 @@ pub enum AccountLinkError { MustConfirmEmail, #[error("Authenticator is already present.")] 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)] Unknown(#[from] anyhow::Error), }