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 fb4032d6ce
commit c5989d2735
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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}");
} }
} }
} }