add both things that we're joining on to the error message

main
Brian Hicks 2021-01-11 13:37:03 -06:00
parent 99db25af48
commit ea462e9463
1 changed files with 9 additions and 9 deletions

View File

@ -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<()> {