os: mention that execute_opt error contains commands output (#19742)

This commit is contained in:
Turiiya 2023-11-03 12:28:42 +01:00 committed by GitHub
parent f0a1e4d94b
commit fbefe6858b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {