Skip to content

Commit

Permalink
fix: add details to connection signing error
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Oct 12, 2021
1 parent 41d9282 commit 1e07915
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}'`
)
}

Expand Down

0 comments on commit 1e07915

Please sign in to comment.