debug functions

This commit is contained in:
VC
2023-10-04 13:54:04 +02:00
parent 06e5c5a5ba
commit 328ab8ba7b

View File

@@ -165,6 +165,10 @@ pub fn upload_video(
.send()?; .send()?;
if res.status().is_success() { if res.status().is_success() {
/* debug */
println!("{:?}", res.status());
println!("{:?}", res.text()?);
/* debug */
Ok(()) Ok(())
} else { } else {
Err(TootubeError::new(&format!("Cannot upload video: {:?}", res.text())).into()) Err(TootubeError::new(&format!("Cannot upload video: {:?}", res.text())).into())