Skip to content

Commit

Permalink
Fix error return of the pod log writer
Browse files Browse the repository at this point in the history
  • Loading branch information
RobGeada committed Nov 11, 2024
1 parent e648080 commit 4cfaac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/lmes/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ type PodLogAndPipeWriter struct {
func (f PodLogAndPipeWriter) Write(p []byte) (n int, err error) {
// format lm-eval output to stdout and the pipewriter
line := string(p)
fmt.Print(line)
res, _ := fmt.Print(line)
if _, err := f.pw.Write(p); err != nil {
return 0, err
}
Expand All @@ -303,7 +303,7 @@ func (f PodLogAndPipeWriter) Write(p []byte) (n int, err error) {
return 0, err
}
}
return 0, nil
return res, nil
}

func (d *driverImpl) exec() error {
Expand Down

0 comments on commit 4cfaac9

Please sign in to comment.