fix: put_configs response add detail error message (#2492)

感谢pr
This commit is contained in:
lucidhz 2025-01-05 17:27:12 +08:00 committed by GitHub
parent e8ff6c785a
commit 82e76bc58e

View File

@ -27,7 +27,9 @@ pub async fn put_configs(path: &str) -> Result<()> {
match response.status().as_u16() { match response.status().as_u16() {
204 => Ok(()), 204 => Ok(()),
status => { 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}");
} }
} }
} }