diff --git a/src-tauri/src/core/clash_api.rs b/src-tauri/src/core/clash_api.rs index 68282599..60af1204 100644 --- a/src-tauri/src/core/clash_api.rs +++ b/src-tauri/src/core/clash_api.rs @@ -27,7 +27,9 @@ pub async fn put_configs(path: &str) -> Result<()> { match response.status().as_u16() { 204 => Ok(()), status => { - bail!("failed to put configs with status \"{status}\"") + let body = response.text().await?; + // print!("failed to put configs with status \"{}\"\n{}\n{}", status, url, body); + bail!("failed to put configs with status \"{status}\"\n{url}\n{body}"); } } }