mirror of
https://framagit.org/veretcle/tootube.git
synced 2025-07-20 20:41:17 +02:00
fix: publish the entire content in case of failure
This commit is contained in:
@@ -167,6 +167,6 @@ pub fn upload_video(
|
|||||||
if res.status().is_success() {
|
if res.status().is_success() {
|
||||||
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