Skip to content

Commit

Permalink
bubble-up error
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Vergnaud <eric.vergnaud@wanadoo.fr>
  • Loading branch information
ericvergnaud committed Sep 15, 2023
1 parent bb779ab commit 9c06a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node/src/transport/WsInboundTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export class WebSocketTransportSession implements TransportSession {
}
this.socket.send(JSON.stringify(encryptedMessage), (error?) => {
if (error != undefined) {
this.logger.debug('Error sending message.', { cause: error } )
throw new AriesFrameworkError(`${this.type} send message failed.`)
this.logger.debug('Error sending message: ' + error )

Check failure on line 99 in packages/node/src/transport/WsInboundTransport.ts

View workflow job for this annotation

GitHub Actions / Validate

Delete `·`
throw new AriesFrameworkError(`${this.type} send message failed.`, { cause: error })
} else {
this.logger.debug(`${this.type} sent message successfully.`)
}
Expand Down

0 comments on commit 9c06a80

Please sign in to comment.