Skip to content

Commit

Permalink
fix: add details to connection signing error (#484)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
TimoGlastra authored Oct 13, 2021

Verified

This commit was signed with the committer’s verified signature.
TimoGlastra Timo Glastra
1 parent 41d9282 commit e24eafd
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -649,7 +649,9 @@ describe('ConnectionService', () => {
})

return expect(connectionService.processResponse(messageContext)).rejects.toThrowError(
'Connection object in connection response message is not signed with same key as recipient key in invitation'
new RegExp(
'Connection object in connection response message is not signed with same key as recipient key in invitation'
)
)
})

Original file line number Diff line number Diff line change
@@ -318,7 +318,7 @@ export class ConnectionService {
const invitationKey = connectionRecord.getTags().invitationKey
if (signerVerkey !== invitationKey) {
throw new AriesFrameworkError(
'Connection object in connection response message is not signed with same key as recipient key in invitation'
`Connection object in connection response message is not signed with same key as recipient key in invitation expected='${invitationKey}' received='${signerVerkey}'`
)
}

0 comments on commit e24eafd

Please sign in to comment.