Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 343ca6d

Browse files
committedOct 2, 2024·
initialzier: propagate error from copying logs
1 parent 95cbf37 commit 343ca6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎controllers/common.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ func inspectTestRun(ctx context.Context, log logr.Logger, k6 v1alpha1.TestRunI,
103103
_, err = io.Copy(buf, podLogs)
104104
if err != nil {
105105
log.Error(err, "unable to copy logs from the pod")
106+
returnErr = err
106107
return
107108
}
108109

0 commit comments

Comments
 (0)
Please sign in to comment.