From 2440a208f6e0d18f67f4e022b1c28996ee226af0 Mon Sep 17 00:00:00 2001 From: vince Date: Wed, 26 Aug 2020 09:04:40 +0800 Subject: Fix bugs and cleanup code --- cache/repo_cache_bug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cache/repo_cache_bug.go') diff --git a/cache/repo_cache_bug.go b/cache/repo_cache_bug.go index cd60eac1..37b91c54 100644 --- a/cache/repo_cache_bug.go +++ b/cache/repo_cache_bug.go @@ -119,7 +119,7 @@ func (c *RepoCache) ResolveBugExcerpt(id entity.Id) (*BugExcerpt, error) { excerpt, ok := c.bugExcerpts[id] if !ok { - panic("missing bug in the cache") + return nil, bug.ErrBugNotExist } return excerpt, nil -- cgit