Skip to content

Commit 3bb9add

Browse files
elvin03Copilot
andauthored
Update internal/utils/shell/shell.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c31bb7a commit 3bb9add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/utils/shell/shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ func (d *DefaultExecutor) ExecCmd(cmdStr string, sudo bool, chrootPath string, e
498498
if outputStr != "" {
499499
// return outputStr, fmt.Errorf("failed to exec %s: output %s, err %w", fullCmdStr, outputStr, err)
500500
// Do not include the full command string in the error to avoid leaking sensitive data.
501-
return outputStr, fmt.Errorf("failed to execute command: %w", err)
501+
return outputStr, fmt.Errorf("failed to execute command with output: %w", err)
502502
} else {
503503
// return outputStr, fmt.Errorf("failed to exec %s: %w", fullCmdStr, err)
504504
// Do not include the full command string in the error to avoid leaking sensitive data.

0 commit comments

Comments
 (0)