diff options
Diffstat (limited to 'cache/repo_cache.go')
-rw-r--r-- | cache/repo_cache.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cache/repo_cache.go b/cache/repo_cache.go index ce7630a3..720857ce 100644 --- a/cache/repo_cache.go +++ b/cache/repo_cache.go @@ -207,6 +207,10 @@ func (c *RepoCache) ResolveBugPrefix(prefix string) (*BugCache, error) { return nil, fmt.Errorf("Multiple matching bug found:\n%s", strings.Join(matching, "\n")) } + if len(matching) == 0 { + return nil, bug.ErrBugNotExist + } + return c.ResolveBug(matching[0]) } |