diff --git a/src/main.rs b/src/main.rs index b31e8e7..554ceb9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -259,8 +259,10 @@ async fn upload_list(cookie:String,group:Option,asset_id_file_map:AssetIDFi Err(anyhow::Error::msg("Roblox returned 403 with no CSRF"))?; } } - - Ok((asset_id,resp.bytes().await?)) + match resp.status(){ + reqwest::StatusCode::OK=>Ok((asset_id,resp.bytes().await?)), + other=>Err(anyhow::Error::msg(other)), + } } })) .buffer_unordered(CONCURRENT_REQUESTS)