Skip to content

Commit

Permalink
Add error message on failed rootlesskit cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Serock3 committed Jul 17, 2024
1 parent 687072b commit 2881687
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test-manager/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ pub async fn relaunch_with_rootlesskit(vnc_port: Option<u16>) {

cmd.args(std::env::args());

let status = cmd.status().await.unwrap();
let status = cmd.status().await.unwrap_or_else(|e| {
panic!("failed to execute [{:?}]: {}", cmd, e);
});

std::process::exit(status.code().unwrap_or(1));
}

0 comments on commit 2881687

Please sign in to comment.