[#6600] removed filesystem io.EOF error wrapping

This commit is contained in:
Gani Georgiev
2025-03-16 10:43:21 +02:00
parent 8aa3545efe
commit e6573d2549
32 changed files with 88 additions and 62 deletions
+7
View File
@@ -717,6 +717,13 @@ func wrapError(b Driver, err error, key string) error {
return nil
}
// don't wrap or normalize EOF errors since there are many places
// in the standard library (e.g. io.ReadAll) that rely on checks
// such as "err == io.EOF" and they will fail
if errors.Is(err, io.EOF) {
return err
}
err = b.NormalizeError(err)
if key != "" {