Replace result with expect for process.spawn

This commit is contained in:
Filip Tibell 2023-08-20 20:58:28 -05:00
parent 5dd5fb2ad1
commit ecf5c9db44

View file

@ -169,7 +169,7 @@ async fn process_spawn(
// different thread if necessary, and wait // different thread if necessary, and wait
let (status, stdout, stderr) = task::spawn(spawn_command(program, args, options)) let (status, stdout, stderr) = task::spawn(spawn_command(program, args, options))
.await .await
.into_lua_err()??; .expect("Spawned process should not be cancellable")?;
// NOTE: If an exit code was not given by the child process, // NOTE: If an exit code was not given by the child process,
// we default to 1 if it yielded any error output, otherwise 0 // we default to 1 if it yielded any error output, otherwise 0