From ea462e9463a58fdddc8f2248c5b4c5797b8b94ce Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Mon, 11 Jan 2021 13:37:03 -0600 Subject: [PATCH] add both things that we're joining on to the error message --- src/store.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/store.rs b/src/store.rs index d2b05c2..58f1656 100644 --- a/src/store.rs +++ b/src/store.rs @@ -114,15 +114,15 @@ impl Store { } fn absolute_from_config_path(&self, path: PathBuf) -> Result { - 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<()> {