Skip to content

Commit

Permalink
fix(pkg/cmdrunner): log full command on error (#2078)
Browse files Browse the repository at this point in the history
Co-authored-by: Petr Ivanov <krest2005@yandex.ru>
  • Loading branch information
7AC and ivanovpetr authored Feb 23, 2022
1 parent 34b971a commit aeac698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starport/pkg/cmdrunner/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func Exec(ctx context.Context, fullCommand []string, options ...Option) error {
if err != nil {
return &Error{
Err: errors.Wrap(err, errb.String()),
Command: fullCommand[0],
Command: strings.Join(fullCommand, " "),
StdLogs: logs.String(),
includeStdLogsToError: c.includeStdLogsToError,
}
Expand Down

0 comments on commit aeac698

Please sign in to comment.