Skip to content

Commit

Permalink
fix: Fill in missing fmt argument in error message
Browse files Browse the repository at this point in the history
Without this, the error message would literally be "Dotfiles base path :
{}, not found" with curly braces in it instead of the path.
  • Loading branch information
dtolnay authored and oknozor committed Nov 4, 2021
1 parent 635d6ce commit 42a7ff9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Expand Up @@ -328,7 +328,10 @@ impl Bombadil {

fn check_dotfile_dir(&self) -> Result<()> {
if !self.path.exists() {
return Err(anyhow!("Dotfiles base path : {}, not found"));
return Err(anyhow!(
"Dotfiles base path : {}, not found",
self.path.display(),
));
}

if !self.path.is_dir() {
Expand Down

0 comments on commit 42a7ff9

Please sign in to comment.