chore: ffmpeg 执行失败时添加一条说明

This commit is contained in:
amtoaer
2025-08-07 15:11:29 +08:00
parent 5ef23a678f
commit 66bd3d6a41

View File

@@ -167,7 +167,8 @@ impl Downloader {
output_path.to_string_lossy().as_ref(),
])
.output()
.await?;
.await
.context("failed to run ffmpeg")?;
if !output.status.success() {
bail!("ffmpeg error: {}", str::from_utf8(&output.stderr).unwrap_or("unknown"));
}