Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
askolesov committed Mar 17, 2022
1 parent 693eb13 commit 194b6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/cheqd/keeper/keeper_did.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (k Keeper) SetDidCount(ctx *sdk.Context, count uint64) {
func (k Keeper) AppendDid(ctx *sdk.Context, did *types.Did, metadata *types.Metadata) error {
// Check that did doesn't exist
if k.HasDid(ctx, did.Id) {
return types.ErrDidDocNotFound.Wrapf(did.Id)
return types.ErrDidDocExists.Wrapf(did.Id)
}

// Create the did
Expand Down

0 comments on commit 194b6d7

Please sign in to comment.