diff options
Diffstat (limited to 'cache/repo_cache_bug.go')
-rw-r--r-- | cache/repo_cache_bug.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |