diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-11-27 20:56:45 -0500 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2022-11-27 20:56:45 -0500 |
commit | 49929c034f52272986ea6ac7457e64dbaa9454cb (patch) | |
tree | 8b025e72fedaa084cf445d17dbdab0e060cf9e0c /entities/identity/identity_user.go | |
parent | 64c18b15a4a0c8b7e59587aa09de92d52c698ede (diff) | |
download | git-bug-49929c034f52272986ea6ac7457e64dbaa9454cb.tar.gz |
feat: wrap ErrMultipleConfigEntry to report duplicate key
References #935.
Diffstat (limited to 'entities/identity/identity_user.go')
-rw-r--r-- | entities/identity/identity_user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/entities/identity/identity_user.go b/entities/identity/identity_user.go index 435af060..cbbb8974 100644 --- a/entities/identity/identity_user.go +++ b/entities/identity/identity_user.go @@ -39,7 +39,7 @@ func GetUserIdentityId(repo repository.Repo) (entity.Id, error) { if errors.Is(err, repository.ErrNoConfigEntry) { return entity.UnsetId, ErrNoIdentitySet } - if err == repository.ErrMultipleConfigEntry { + if errors.Is(err, repository.ErrMultipleConfigEntry) { return entity.UnsetId, ErrMultipleIdentitiesSet } if err != nil { |