From f0ae3d39042920f0cd9a30069fe3e3d57ec5599c Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Tue, 24 Sep 2024 23:08:41 -0400 Subject: [PATCH] fix(client): catch json suspended user error in better place --- src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index 3aef8d09..9b8450ae 100644 --- a/src/client.rs +++ b/src/client.rs @@ -419,7 +419,7 @@ pub async fn json(path: String, quarantine: bool) -> Result { println!("{json:?}"); // If user is suspended - if json["data"]["is_suspended"].as_bool().unwrap_or_default() { + if json["data"]["is_suspended"].as_bool().unwrap_or_default() { return Err("suspended".into()); }