fix: fix error message for empty command output in ExecCommand

This commit is contained in:
Takanori Hirano 2025-03-17 22:06:22 +09:00
parent 8c88d5046a
commit aa452d7857

View File

@ -118,7 +118,7 @@ func ExecCommand(l SpaceSepList) (pass string, err error) {
}
pass = strings.Trim(stdout.String(), "\r\n")
if pass == "" {
return pass, errors.New("executing command %q failed: no output")
return pass, errors.New("executing command %q failed: returned empty string")
}
return pass, nil