mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
os: mention that execute_opt
error contains commands output (#19742)
This commit is contained in:
parent
f0a1e4d94b
commit
fbefe6858b
1 changed files with 1 additions and 1 deletions
|
@ -881,7 +881,7 @@ pub fn execute_or_exit(cmd string) Result {
|
|||
return res
|
||||
}
|
||||
|
||||
// execute_opt returns the os.Result of executing `cmd`, or an error on failure.
|
||||
// execute_opt returns the os.Result of executing `cmd`, or an error with its output on failure.
|
||||
pub fn execute_opt(cmd string) !Result {
|
||||
res := execute(cmd)
|
||||
if res.exit_code != 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue