summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/commands/release.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/release.rs b/src/commands/release.rs
index 6f0232b..460fbeb 100644
--- a/src/commands/release.rs
+++ b/src/commands/release.rs
@@ -14,6 +14,7 @@ use std::io::Write;
use std::path::PathBuf;
use anyhow::anyhow;
+use anyhow::Context;
use anyhow::Error;
use anyhow::Result;
use clap::ArgMatches;
@@ -166,8 +167,9 @@ async fn new_release(
}
// else !dest_path.exists()
- tokio::fs::copy(art_path, &dest_path)
+ tokio::fs::copy(&art_path, &dest_path)
.await
+ .with_context(|| anyhow!("Copying {} to {}", art_path.display(), dest_path.display()))
.map_err(Error::from)
.map(|_| (art, dest_path))
}