improve repo clone error

This commit is contained in:
Daiderd Jordan 2018-04-04 23:53:53 +02:00
parent 38d2fe8672
commit c56013fb54
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -76,7 +76,7 @@ pub trait GitClonable {
if result.success() {
return Ok(());
} else {
return Err(Error::new(ErrorKind::Other, "Failed to clone"));
return Err(Error::new(ErrorKind::Other, format!("Failed to clone from {:?} to {:?}", self.clone_from(), self.clone_to())));
}
}