Skip to content

Commit

Permalink
remove command name from joined args
Browse files Browse the repository at this point in the history
Path to command is already printed, making it confusing to debug.
  • Loading branch information
rgynn authored and mmlb committed Mar 12, 2018
1 parent 386bffe commit ebadc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (c *command) Run(arg ...string) ([][]string, error) {
if err != nil {
return nil, &Error{
Err: err,
Debug: strings.Join([]string{cmd.Path, joinedArgs}, " "),
Debug: strings.Join([]string{cmd.Path, joinedArgs[1:]}, " "),
Stderr: stderr.String(),
}
}
Expand Down

0 comments on commit ebadc9b

Please sign in to comment.