Skip to content

Commit b01bdc6

Browse files
authored
Merge pull request #4692 from kersten/chore/test-context
🌱 (chore): wrap error with %w in test_context.go for improved diagnostics
2 parents 707be22 + 62e7a60 commit b01bdc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/utils/test_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func (cc *CmdContext) Run(cmd *exec.Cmd) ([]byte, error) {
307307
_, _ = fmt.Fprintf(GinkgoWriter, "running: %s\n", command)
308308
output, err := cmd.CombinedOutput()
309309
if err != nil {
310-
return output, fmt.Errorf("%s failed with error: (%v) %s", command, err, string(output))
310+
return output, fmt.Errorf("%q failed with error %q: %w", command, string(output), err)
311311
}
312312

313313
return output, nil

0 commit comments

Comments
 (0)