mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-01 01:40:24 +01:00
[#6600] removed filesystem io.EOF error wrapping
This commit is contained in:
1 parent
8aa3545efe
commit
e6573d2549
32 files changed
+88
-62
No files matched your search
@@ -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 != "" {
|
||||
|
||||
Reference in new issue
Block a user