Skip to content

Commit 09f34e8

Browse files
valpackettslp
authored andcommitted
muvm-guest: add error context to init script launches
Signed-off-by: Val Packett <[email protected]>
1 parent b0f1ccc commit 09f34e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/muvm/src/guest/bin/muvm-guest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ fn main() -> Result<ExitCode> {
109109
for init_command in options.init_commands {
110110
let code = Command::new(&init_command)
111111
.current_dir(&options.cwd)
112-
.spawn()?
112+
.spawn()
113+
.with_context(|| format!("Failed to execute init command {init_command:?}"))?
113114
.wait()?;
114115
if !code.success() {
115116
return Err(anyhow!("Executing `{}` failed", init_command.display()));

0 commit comments

Comments
 (0)