Skip to content

Commit

Permalink
os: mention that execute_opt error contains commands output (#19742)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Nov 3, 2023
1 parent f0a1e4d commit fbefe68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/os/os.v
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fbefe68

Please sign in to comment.