@@ -217,7 +217,7 @@ pub async fn push_profile(
217
217
218
218
match show_derivation_output. status . code ( ) {
219
219
Some ( 0 ) => ( ) ,
220
- a => return Err ( PushProfileError :: ShowDerivationExit ( a) ) ,
220
+ a => error ! ( "{}" , PushProfileError :: ShowDerivationExit ( a) ) ,
221
221
} ;
222
222
223
223
let derivation_info: HashMap < & str , serde_json:: value:: Value > = serde_json:: from_str (
@@ -246,15 +246,15 @@ pub async fn push_profile(
246
246
247
247
match build_cmd_handle. map_err ( PushProfileError :: Build ) ?. code ( ) {
248
248
Some ( 0 ) => ( ) ,
249
- a => return Err ( PushProfileError :: BuildExit ( a) ) ,
249
+ a => error ! ( "{}" , PushProfileError :: BuildExit ( a) ) ,
250
250
} ;
251
251
252
252
if !Path :: new ( format ! ( "{}/deploy-rs-activate" , closure) . as_str ( ) ) . exists ( ) {
253
- return Err ( PushProfileError :: DeployRsActivateDoesntExist ) ;
253
+ error ! ( "{}" , PushProfileError :: DeployRsActivateDoesntExist ) ;
254
254
}
255
255
256
256
if !Path :: new ( format ! ( "{}/activate-rs" , closure) . as_str ( ) ) . exists ( ) {
257
- return Err ( PushProfileError :: ActivateRsDoesntExist ) ;
257
+ error ! ( "{}" , PushProfileError :: ActivateRsDoesntExist ) ;
258
258
}
259
259
260
260
if let Ok ( local_key) = std:: env:: var ( "LOCAL_KEY" ) {
@@ -268,7 +268,7 @@ pub async fn push_profile(
268
268
269
269
match sign_cmd_handle. status . code ( ) {
270
270
Some ( 0 ) => ( ) ,
271
- a => return Err ( PushProfileError :: SignExit ( a) ) ,
271
+ a => error ! ( "{}" , PushProfileError :: SignExit ( a) ) ,
272
272
} ;
273
273
}
274
274
@@ -284,7 +284,7 @@ pub async fn push_profile(
284
284
285
285
match copy_exit_cmd_handle. map_err ( PushProfileError :: Copy ) ?. code ( ) {
286
286
Some ( 0 ) => ( ) ,
287
- a => return Err ( PushProfileError :: CopyExit ( a) ) ,
287
+ a => error ! ( "{}" , PushProfileError :: CopyExit ( a) ) ,
288
288
} ;
289
289
290
290
Ok ( ( ) )
0 commit comments