chore: use Go 1.26 (#26786)
This commit is contained in:
parent
88ecd6f152
commit
0ee6d787e1
33 changed files with 96 additions and 122 deletions
|
|
@ -92,8 +92,7 @@ func (p *Script) exec(script string) (string, error) {
|
|||
|
||||
if err != nil {
|
||||
// use STDOUT if available
|
||||
var ee *exec.ExitError
|
||||
if errors.As(err, &ee) {
|
||||
if ee, ok := errors.AsType[*exec.ExitError](err); ok {
|
||||
s = strings.TrimSpace(string(ee.Stderr))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue