Skip to content

Commit

Permalink
fix variable expansion in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog authored Jan 10, 2025
1 parent 48d3905 commit 53e03b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ impl OutputDir {
/// the lock to be released. The returned `OutputDir` holds a lock for its lifetime.
pub fn new(in_dir: &Utf8Path) -> Result<OutputDir> {
if !in_dir.exists() {
create_dir(in_dir).context("create output parent directory {in_dir:?}")?;
create_dir(in_dir)
.with_context(|| format!("create output parent directory {in_dir:?}"))?;
}
let output_dir = in_dir.join(OUTDIR_NAME);
if output_dir.exists() {
Expand Down

0 comments on commit 53e03b4

Please sign in to comment.