Skip to content

Commit 0d56c42

Browse files
committed
give GitFailure a better name
1 parent 9e1076b commit 0d56c42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/crates/git.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl CrateTrait for GitRepo {
8686
.cd(&path)
8787
.process_lines(&mut detect_private_repositories)
8888
.run()
89-
.with_context(|| PrepareError::GitFailure {
89+
.with_context(|| PrepareError::GitOperationFailed {
9090
action: "update",
9191
url: self.url.clone(),
9292
})
@@ -98,7 +98,7 @@ impl CrateTrait for GitRepo {
9898
.args(&[&path])
9999
.process_lines(&mut detect_private_repositories)
100100
.run()
101-
.with_context(|| PrepareError::GitFailure {
101+
.with_context(|| PrepareError::GitOperationFailed {
102102
action: "clone",
103103
url: self.url.clone(),
104104
})
@@ -124,7 +124,7 @@ impl CrateTrait for GitRepo {
124124
.args(&["clone"])
125125
.args(&[self.cached_path(workspace).as_path(), dest])
126126
.run()
127-
.with_context(|| PrepareError::GitFailure {
127+
.with_context(|| PrepareError::GitOperationFailed {
128128
action: "checkout",
129129
url: self.url.clone(),
130130
})?;

src/prepare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ pub enum PrepareError {
414414
InvalidCargoLock(String),
415415
/// git clone/fetch failed, but repository didn't appear to be private
416416
#[error("git failed to {action} for {url}")]
417-
GitFailure {
417+
GitOperationFailed {
418418
/// action that was attempted
419419
action: &'static str,
420420
/// repo url

0 commit comments

Comments
 (0)