aboutsummaryrefslogtreecommitdiffstats
path: root/entities/identity/identity_user.go
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-11-27 20:56:45 -0500
committerSteve Moyer <smoyer1@selesy.com>2022-11-27 20:56:45 -0500
commit49929c034f52272986ea6ac7457e64dbaa9454cb (patch)
tree8b025e72fedaa084cf445d17dbdab0e060cf9e0c /entities/identity/identity_user.go
parent64c18b15a4a0c8b7e59587aa09de92d52c698ede (diff)
downloadgit-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.go2
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 {