diff --git a/src/main.rs b/src/main.rs index d4bd85f..f07fffb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,7 +142,7 @@ fn main() { return; } Err(AccountLinkError::MustProvidePhoneNumber) => { - print!("Enter your phone number:"); + print!("Enter your phone number: "); linker.phone_number = prompt(); } Err(AccountLinkError::AuthenticatorPresent) => { diff --git a/steamguard/src/steamapi.rs b/steamguard/src/steamapi.rs index 14d7c33..9b3a894 100644 --- a/steamguard/src/steamapi.rs +++ b/steamguard/src/steamapi.rs @@ -315,18 +315,19 @@ impl SteamApiClient { .send()?; let result: Value = resp.json()?; + trace!("phoneajax: {:?}", result); if result["has_phone"] != Value::Null { - trace!("found has_phone field"); + trace!("op: {} - found has_phone field", op); return result["has_phone"] .as_bool() .ok_or(anyhow!("failed to parse has_phone field into boolean")); } else if result["success"] != Value::Null { - trace!("found success field"); + trace!("op: {} - found success field", op); return result["success"] .as_bool() .ok_or(anyhow!("failed to parse success field into boolean")); } else { - trace!("did not find any expected field"); + trace!("op: {} - did not find any expected field", op); return Ok(false); } }