Skip to content

Commit f5ded9b

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

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
@@ -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)