diff options
Diffstat (limited to 'identity')
-rw-r--r-- | identity/identity.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/identity/identity.go b/identity/identity.go index 3d523d38..313e3fd7 100644 --- a/identity/identity.go +++ b/identity/identity.go @@ -18,6 +18,16 @@ const identityConfigKey = "git-bug.identity" var ErrIdentityNotExist = errors.New("identity doesn't exist") +type ErrMultipleMatch struct { + Matching []string +} + +func (e ErrMultipleMatch) Error() string { + return fmt.Sprintf("Multiple matching identities found:\n%s", strings.Join(e.Matching, "\n")) +} + +var _ Interface = &Identity{} + type Identity struct { id string Versions []*Version |