Skip to content

Commit

Permalink
tweak error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Nov 30, 2023
1 parent 2467cc7 commit 7c25c86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion discovery/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (m *Module) validateRetraction(serviceID string, presentation vc.Verifiable
return fmt.Errorf("retraction presentation 'retract_jti' claim is not a valid DID URL: %w", err)
}
if !signerDID.Equals(retractJTI.DID) {
return errors.New("retraction presentation 'retract_jti' claim does not match JWT issuer")
return errors.New("retraction presentation 'retract_jti' claim DID does not match JWT issuer")
}
exists, err := m.store.exists(serviceID, signerDID.String(), retractJTIString)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion discovery/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func Test_Module_Add(t *testing.T) {
claims["retract_jti"] = bobDID.String()
})
err := m.Add(testServiceID, vp)
assert.EqualError(t, err, "retraction presentation 'retract_jti' claim does not match JWT issuer")
assert.EqualError(t, err, "retraction presentation 'retract_jti' claim DID does not match JWT issuer")
})
})
}
Expand Down

0 comments on commit 7c25c86

Please sign in to comment.