mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-05 07:28:04 +08:00
chore: ffmpeg 执行失败时添加一条说明
This commit is contained in:
@@ -167,7 +167,8 @@ impl Downloader {
|
|||||||
output_path.to_string_lossy().as_ref(),
|
output_path.to_string_lossy().as_ref(),
|
||||||
])
|
])
|
||||||
.output()
|
.output()
|
||||||
.await?;
|
.await
|
||||||
|
.context("failed to run ffmpeg")?;
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
bail!("ffmpeg error: {}", str::from_utf8(&output.stderr).unwrap_or("unknown"));
|
bail!("ffmpeg error: {}", str::from_utf8(&output.stderr).unwrap_or("unknown"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user