Skip to content

Commit

Permalink
Merge pull request #1500 from ExchangeUnion/log-failure-reason
Browse files Browse the repository at this point in the history
  • Loading branch information
sangaman authored Apr 29, 2020
2 parents b6339c4 + 0a93f96 commit 6e6a4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swaps/Swaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class Swaps extends EventEmitter {
failureReason,
errorMessage,
};
this.logger.debug(`Sending swap error to peer: ${JSON.stringify(errorBody)}`);
this.logger.debug(`Sending ${SwapFailureReason[errorBody.failureReason]} error to peer: ${JSON.stringify(errorBody)}`);
await peer.sendPacket(new packets.SwapFailedPacket(errorBody, reqId));
}

Expand Down

0 comments on commit 6e6a4c8

Please sign in to comment.