mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974)
This commit is contained in:
@ -381,9 +381,10 @@ fn repl_run_vfile(file string) ?os.Result {
|
||||
$if trace_repl_temp_files ? {
|
||||
eprintln('>> repl_run_vfile file: $file')
|
||||
}
|
||||
s := os.exec('"$vexe" -repl run "$file"') or {
|
||||
rerror(err.msg)
|
||||
return err
|
||||
s := os.execute('"$vexe" -repl run "$file"')
|
||||
if s.exit_code < 0 {
|
||||
rerror(s.output)
|
||||
return error(s.output)
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
Reference in New Issue
Block a user