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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user