diff options
author | zeripath <art27@cantab.net> | 2020-10-18 02:29:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-17 21:29:06 -0400 |
commit | 25b7766673867d2a9ac32fde6cb0d719f04b2953 (patch) | |
tree | 41e06110a3c25e213a648e830a7d22d2c1ea8f3b /modules | |
parent | 4cc8697a652a60263149fb794c46df87d19eff74 (diff) | |
download | gitea-25b7766673867d2a9ac32fde6cb0d719f04b2953.tar.gz gitea-25b7766673867d2a9ac32fde6cb0d719f04b2953.zip |
When handling errors in storageHandler check underlying error (#13178)
Unfortunately there was a mistake in #13164 which fails to handle
os.PathError wrapping an os.ErrNotExist
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/storage/minio.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/storage/minio.go b/modules/storage/minio.go index 4a2819de5e..0e0cb3690d 100644 --- a/modules/storage/minio.go +++ b/modules/storage/minio.go @@ -32,7 +32,7 @@ type minioObject struct { func (m *minioObject) Stat() (os.FileInfo, error) { oi, err := m.Object.Stat() if err != nil { - return nil, err + return nil, convertMinioErr(err) } return &minioFileInfo{oi}, nil |