We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd48384 commit 278e3dbCopy full SHA for 278e3db
src/imdl/torrent.rs
@@ -25,6 +25,10 @@ pub async fn create_torrent(
25
if output.status.success() {
26
Ok(())
27
} else {
28
- Err(anyhow::anyhow!("Failed to create torrent"))
+ let output_info = match String::from_utf8(output.stderr) {
29
+ Ok(string) => string,
30
+ Err(..) => "<failed to load command output>".to_string()
31
+ };
32
+ Err(anyhow::anyhow!(format!("Failed to create torrent: {}", output_info)))
33
}
34
src/transcode/transcode.rs
@@ -52,7 +52,7 @@ pub async fn transcode_release(
52
53
54
55
- fs::create_dir(&output_dir).await?;
+ fs::create_dir_all(&output_dir).await?;
56
57
let paths = get_all_files_with_extension(&flac_dir, ".flac").await?;
58
0 commit comments