From 1c4494de3fa2dba9cdf816c29f685d742babec11 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Sat, 6 Jan 2024 01:48:21 -0800 Subject: [PATCH] fix: misleading error message for getKline --- src/rest/clients/trade.client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rest/clients/trade.client.ts b/src/rest/clients/trade.client.ts index fd84894..91634df 100644 --- a/src/rest/clients/trade.client.ts +++ b/src/rest/clients/trade.client.ts @@ -104,7 +104,7 @@ export class TradeClient extends GenericClient { if (err.response) { const { data } = err.response; - this.logger.error(`Get orders failed: ${data.message}`); + this.logger.error(`Get kline failed: ${data.message}`); throw new Error( JSON.stringify({ @@ -114,9 +114,9 @@ export class TradeClient extends GenericClient { ); } - this.logger.error(err.toJSON(), 'Get orders failed'); + this.logger.error(err.toJSON(), 'Get kline failed'); } else { - this.logger.error(error.message, 'Get orders failed'); + this.logger.error(error.message, 'Get kline failed'); } throw error;