mirror of
https://framagit.org/veretcle/tootube.git
synced 2025-07-20 12:31:19 +02:00
debug functions
This commit is contained in:
@@ -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())
|
||||||
|
Reference in New Issue
Block a user