mirror of
https://github.com/rclone/rclone.git
synced 2025-04-19 01:59:00 +08:00
fix: fix error message for empty command output in ExecCommand
This commit is contained in:
parent
8c88d5046a
commit
aa452d7857
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user