Skip to content

Commit

Permalink
Add missing error context on snforge invocation (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciektr authored Jun 27, 2024
1 parent 9f3dbe2 commit e10f22b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scarb/src/ops/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,10 @@ fn init_snforge(name: PackageName, target_dir: Utf8PathBuf, config: &Config) ->
.envs(get_env_vars(config, None)?)
.stderr(Stdio::inherit())
.stdout(Stdio::inherit())
.spawn()?;
.spawn()
.context("failed to spawn snforge")?;

process.wait()?;
process.wait().context("failed to execute snforge")?;

Ok(())
}
Expand Down

0 comments on commit e10f22b

Please sign in to comment.