File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ fn main() {
153153 e => e,
154154 } ;
155155 println ! ( "\n Did not run successfully: {:?}\n {:?}\n -------------" , e, cmd) ;
156- exec_cmd ( & mut on_fail) . expect ( "could not run the backup command" ) ;
156+ status_code ( & mut on_fail) . expect ( "could not run the backup command" ) ;
157157 std:: process:: exit ( 1 ) ;
158158 }
159159
@@ -182,10 +182,10 @@ fn main() {
182182 }
183183 }
184184
185- let code = exec_cmd ( & mut cmd) . unwrap_or_else ( |_| panic ! ( "\n \n failed to run {:?}" , cmd) ) ;
185+ let code = status_code ( & mut cmd) . unwrap_or_else ( |_| panic ! ( "\n \n failed to run {:?}" , cmd) ) ;
186186 std:: process:: exit ( code) ;
187187}
188188
189- fn exec_cmd ( cmd : & mut Command ) -> io:: Result < i32 > {
189+ fn status_code ( cmd : & mut Command ) -> io:: Result < i32 > {
190190 cmd. status ( ) . map ( |status| status. code ( ) . unwrap ( ) )
191191}
You can’t perform that action at this time.
0 commit comments