port in args and env. slightly different style

building up a bunch of deferred errors in the CtxBuilder sucks. so does
reporting errors right away. Idk what to do here?
This commit is contained in:
Pat Hickey
2020-12-11 15:33:15 -08:00
parent aef8be560f
commit d586574b1f
5 changed files with 86 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ pub fn instantiate(
// Additionally register any preopened directories if we have them.
let mut builder = wasi_c2::WasiCtx::builder();
builder.arg(bin_name).arg(".").inherit_stdio();
builder.arg(bin_name)?.arg(".")?.inherit_stdio();
/*
if let Some(workspace) = workspace {