fix: Modify the service status judgment logic (#9301)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 3s

This commit is contained in:
ssongliu 2025-06-26 17:18:14 +08:00 committed by GitHub
parent 874717cbcd
commit 3061d640ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,7 +177,7 @@ func executeCommand(ctx context.Context, command string, args ...string) ([]byte
cmd.Stderr = &buf
if err := cmd.Run(); err != nil {
return nil, &CommandError{
return buf.Bytes(), &CommandError{
Cmd: cmd.String(),
Output: buf.String(),
Err: err,