mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Replace result with expect for process.spawn
This commit is contained in:
parent
5dd5fb2ad1
commit
ecf5c9db44
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue