From a7191920fa2a05042263f34c822aed03624a3c5e Mon Sep 17 00:00:00 2001 From: metalwarrior665 Date: Mon, 21 Jul 2025 20:17:16 +0200 Subject: [PATCH] debug: throw full error object for API calls --- src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.js b/src/utils.js index b68ef2d..cee8a27 100644 --- a/src/utils.js +++ b/src/utils.js @@ -37,8 +37,8 @@ exports.retryingRequest = async (type, request) => { await new Promise((res) => setTimeout(res, sleepMs)); sleepMs *= SLEEP_MULTIPLIER; } else { - const error = getNiceErrorMessage(type, e.message); - throw error; + log.error(getNiceErrorMessage(type, e.message)); + throw e; } } }