diff --git a/plugins/exec/exec.go b/plugins/exec/exec.go index c9d115312..5a039565d 100644 --- a/plugins/exec/exec.go +++ b/plugins/exec/exec.go @@ -63,7 +63,7 @@ func (c CommandRunner) Run(command *Command) ([]byte, error) { cmd.Stdout = &out if err := cmd.Run(); err != nil { - return nil, fmt.Errorf("exec: %s for command '%s'", err, command) + return nil, fmt.Errorf("exec: %s for command '%s'", err, command.command) } return out.Bytes(), nil