Skip to content

Commit

Permalink
add both things that we're joining on to the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 11, 2021
1 parent 99db25a commit ea462e9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/store.rs
Expand Up @@ -114,15 +114,15 @@ impl Store {
}

fn absolute_from_config_path(&self, path: PathBuf) -> Result<PathBuf> {
self.absolute_config_parent_path()?
.join(&path)
.canonicalize()
.with_context(|| {
format!(
"could not make an absolute path with the config file and {}",
path.display()
)
})
let parent_path = self.absolute_config_parent_path()?;

parent_path.join(&path).canonicalize().with_context(|| {
format!(
"could not make an absolute path with the config file at {} and {}",
parent_path.display(),
path.display(),
)
})
}

pub fn add_root(&mut self, path: PathBuf) -> Result<()> {
Expand Down

0 comments on commit ea462e9

Please sign in to comment.