From ed0effb9c27a0c2bfa15a37381885c52ce37b215 Mon Sep 17 00:00:00 2001 From: Wenkai Yin 79628 Date: Thu, 12 Apr 2018 16:12:40 +0800 Subject: [PATCH] Bug fix When deleting tags belonged to the same repository concurrently, the repository may be deleted by one API call and the other calls get 404. This commit logs a warning message and doesn't return 404. --- src/ui/api/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/api/repository.go b/src/ui/api/repository.go index af6277a4d..ea93e731b 100644 --- a/src/ui/api/repository.go +++ b/src/ui/api/repository.go @@ -324,7 +324,7 @@ func (ra *RepositoryAPI) Delete() { return } if repository == nil { - ra.HandleNotFound(fmt.Sprintf("repository %s not found", repoName)) + log.Warningf("the repository %s not found after deleting tags", repoName) return }