File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 } ) ?;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments