err.go
1package bug
2
3import (
4 "errors"
5
6 "github.com/MichaelMure/git-bug/entity"
7)
8
9var ErrBugNotExist = errors.New("bug doesn't exist")
10
11func NewErrMultipleMatchBug(matching []entity.Id) *entity.ErrMultipleMatch {
12 return entity.NewErrMultipleMatch("bug", matching)
13}
14
15func NewErrMultipleMatchOp(matching []entity.Id) *entity.ErrMultipleMatch {
16 return entity.NewErrMultipleMatch("operation", matching)
17}