Skip to content

Commit d024fcc

Browse files
committed
muvm-guest: add error context to init script launches
Signed-off-by: Val Packett <[email protected]>
1 parent 62fa495 commit d024fcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

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

0 commit comments

Comments
 (0)