Skip to content

Commit

Permalink
fix: add error message to log (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoGlastra authored Jul 9, 2021
1 parent 353e1d8 commit a79e4f4
Showing 1 changed file with 2 additions and 1 deletion.
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 a79e4f4

Please sign in to comment.