From df28ddd495c31a1321093b94a5b687aabc9e8d45 Mon Sep 17 00:00:00 2001 From: hichri-louay Date: Mon, 30 Oct 2023 15:24:16 +0100 Subject: [PATCH] remove console log errors --- web3/wallets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3/wallets.js b/web3/wallets.js index 408cc109..3c7c311f 100644 --- a/web3/wallets.js +++ b/web3/wallets.js @@ -557,7 +557,7 @@ const getNetworkByToken = async (idCrypto) => { const result = await rp.request(options) results.push(result) } catch (err) { - console.error('Error fetching data for batch:', err) + // Handle the error as needed, e.g., retry or skip } }) @@ -820,7 +820,7 @@ exports.getallCryptoMarket = async (startVariable) => { const response = await rp(options) result.push(response) } catch (error) { - console.error('Error fetching prices:', error) + throw new Error('Error fetching prices') } }