aboutsummaryrefslogtreecommitdiffstats
path: root/entities/bug/err.go
blob: 1bd174bb349814d0e6830a472d5e724699d33dc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package bug

import (
	"errors"

	"github.com/MichaelMure/git-bug/entity"
)

var ErrBugNotExist = errors.New("bug doesn't exist")

func NewErrMultipleMatchBug(matching []entity.Id) *entity.ErrMultipleMatch {
	return entity.NewErrMultipleMatch("bug", matching)
}

func NewErrMultipleMatchOp(matching []entity.Id) *entity.ErrMultipleMatch {
	return entity.NewErrMultipleMatch("operation", matching)
}