File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ fn main() {
153
153
e => e,
154
154
} ;
155
155
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" ) ;
157
157
std:: process:: exit ( 1 ) ;
158
158
}
159
159
@@ -182,10 +182,10 @@ fn main() {
182
182
}
183
183
}
184
184
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) ) ;
186
186
std:: process:: exit ( code) ;
187
187
}
188
188
189
- fn exec_cmd ( cmd : & mut Command ) -> io:: Result < i32 > {
189
+ fn status_code ( cmd : & mut Command ) -> io:: Result < i32 > {
190
190
cmd. status ( ) . map ( |status| status. code ( ) . unwrap ( ) )
191
191
}
You can’t perform that action at this time.
0 commit comments