Add debug strings for path detection

This commit is contained in:
Roey Darwish Dror
2019-12-08 20:56:03 +02:00
parent 060d454490
commit 717579da1d

View File

@@ -56,8 +56,10 @@ where
fn require(self) -> Result<Self, Error> { fn require(self) -> Result<Self, Error> {
if self.as_ref().exists() { if self.as_ref().exists() {
debug!("Path {:?} exists", self.as_ref());
Ok(self) Ok(self)
} else { } else {
debug!("Path {:?} doesn't exist", self.as_ref());
Err(ErrorKind::SkipStep.into()) Err(ErrorKind::SkipStep.into())
} }
} }