fix: publish the entire content in case of failure

This commit is contained in:
VC
2023-10-05 09:37:55 +02:00
parent 3c2bbf68f0
commit 9cf81ec9e5

View File

@@ -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())
} }
} }