diff --git a/lib/swaps/Swaps.ts b/lib/swaps/Swaps.ts index 46efed650..bb75c255d 100644 --- a/lib/swaps/Swaps.ts +++ b/lib/swaps/Swaps.ts @@ -935,9 +935,9 @@ class Swaps extends EventEmitter { } if (errorMessage) { - this.logger.debug(`deal ${deal.rHash} failed due to ${SwapFailureReason[failureReason]}`); - } else { this.logger.debug(`deal ${deal.rHash} failed due to ${SwapFailureReason[failureReason]}: ${errorMessage}`); + } else { + this.logger.debug(`deal ${deal.rHash} failed due to ${SwapFailureReason[failureReason]}`); } switch (failureReason) {