Skip to content

Commit

Permalink
fix: add error message to log
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Jul 2, 2021
1 parent 93893b7 commit 8ec25c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/agent/__tests__/Agent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ describe('Agent', () => {
expect(container.resolve(MessageReceiver)).toBeInstanceOf(MessageReceiver)
expect(container.resolve(Dispatcher)).toBeInstanceOf(Dispatcher)
expect(container.resolve(EnvelopeService)).toBeInstanceOf(EnvelopeService)

expect(container.resolve(IndyWallet)).toBeInstanceOf(IndyWallet)
})

it('should return the same instance for consequent resolves', () => {
Expand Down
3 changes: 2 additions & 1 deletion src/transport/HttpOutboundTransporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ export class HttpOutboundTransporter implements OutboundTransporter {
this.agent.receiveMessage(wireMessage)
}
} catch (error) {
this.logger.error(`Error sending message to ${endpoint}`, {
this.logger.error(`Error sending message to ${endpoint}: ${error.message}`, {
error,
message: error.message,
body: payload,
didCommMimeType: this.agentConfig.didCommMimeType,
})
Expand Down

0 comments on commit 8ec25c6

Please sign in to comment.