From c56013fb54e9fbf6c2f8dcfc747abe67b4531a0a Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 4 Apr 2018 23:53:53 +0200 Subject: [PATCH] improve repo clone error --- ofborg/src/clone.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofborg/src/clone.rs b/ofborg/src/clone.rs index 1ab3277..a2ba7ea 100644 --- a/ofborg/src/clone.rs +++ b/ofborg/src/clone.rs @@ -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()))); } }