File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,8 @@ pub enum DeployProfileError {
332
332
SSHActivate ( std:: io:: Error ) ,
333
333
#[ error( "Activating over SSH resulted in a bad exit code: {0:?}" ) ]
334
334
SSHActivateExit ( Option < i32 > ) ,
335
+ #[ error( "Activating over SSH resulted in a bad exit code: {0:?}" ) ]
336
+ SSHActivateTimeout ( tokio:: sync:: oneshot:: error:: RecvError ) ,
335
337
336
338
#[ error( "Failed to run wait command over SSH: {0}" ) ]
337
339
SSHWait ( std:: io:: Error ) ,
@@ -520,7 +522,7 @@ pub async fn deploy_profile(
520
522
info ! ( "Success activating, attempting to confirm activation" ) ;
521
523
522
524
let c = confirm_profile ( deploy_data, deploy_defs, temp_path, & ssh_addr) . await ;
523
- recv_activated. await . unwrap ( ) ;
525
+ recv_activated. await . map_err ( |x| DeployProfileError :: SSHActivateTimeout ( x ) ) ? ;
524
526
c?;
525
527
526
528
thread
You can’t perform that action at this time.
0 commit comments