mirror of
https://github.com/restic/restic.git
synced 2025-12-12 06:32:06 +00:00
improve fprintf related error handling
This commit is contained in:
@@ -42,7 +42,7 @@ func (rd *eofDetectReader) Close() error {
|
||||
msg += fmt.Sprintf(", body: %q", buf)
|
||||
}
|
||||
|
||||
fmt.Fprintln(os.Stderr, msg)
|
||||
_, _ = fmt.Fprintln(os.Stderr, msg)
|
||||
Log("%s: %+v", msg, errors.New("Close()"))
|
||||
}
|
||||
return rd.rd.Close()
|
||||
|
||||
Reference in New Issue
Block a user