]> source.dussan.org Git - gitea.git/commit
When handling errors in storageHandler check underlying error (#13178) (#13193)
authortechknowlogick <techknowlogick@gitea.io>
Sun, 18 Oct 2020 14:52:03 +0000 (10:52 -0400)
committerGitHub <noreply@github.com>
Sun, 18 Oct 2020 14:52:03 +0000 (15:52 +0100)
commitaca13f941ccfec998eed506c256a0d72b26e64dd
tree88be24c5b8829a1047c8dea8b9855bb8e5ee28b9
parent1ba4a7ec166119672844cf8425c518d3b0a832d7
When handling errors in storageHandler check underlying error (#13178) (#13193)

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>
Co-authored-by: zeripath <art27@cantab.net>
modules/storage/minio.go
routers/routes/routes.go