Skip to content

Commit

Permalink
Merge pull request #5873 from nalind/minor-error-context
Browse files Browse the repository at this point in the history
Add context to an error message
  • Loading branch information
openshift-merge-bot[bot] authored Dec 13, 2024
2 parents ac62622 + c41f021 commit c7f9925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions copier/copier.go
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ func copierWithSubprocess(bulkReader io.Reader, bulkWriter io.Writer, req reques
return nil, fmt.Errorf("%v: %w", step, err)
}
if err = encoder.Encode(req); err != nil {
return killAndReturn(err, "error encoding request for copier subprocess")
return killAndReturn(err, "error encoding work request for copier subprocess")
}
if err = decoder.Decode(&resp); err != nil {
if errors.Is(err, io.EOF) && errorBuffer.Len() > 0 {
Expand All @@ -722,7 +722,7 @@ func copierWithSubprocess(bulkReader io.Reader, bulkWriter io.Writer, req reques
return killAndReturn(err, "error decoding response from copier subprocess")
}
if err = encoder.Encode(&request{Request: requestQuit}); err != nil {
return killAndReturn(err, "error encoding request for copier subprocess")
return killAndReturn(err, "error encoding quit request for copier subprocess")
}
stdinWrite.Close()
stdinWrite = nil
Expand Down

0 comments on commit c7f9925

Please sign in to comment.