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; } } }