diff --git a/discovery/module.go b/discovery/module.go index bf7aa40ee7..5e359e2ce2 100644 --- a/discovery/module.go +++ b/discovery/module.go @@ -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 { diff --git a/discovery/module_test.go b/discovery/module_test.go index 5b0b0c68b7..4c93de5cc0 100644 --- a/discovery/module_test.go +++ b/discovery/module_test.go @@ -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") }) }) }