From 5e651340893f52bb480616cda699e5291ad5b73f Mon Sep 17 00:00:00 2001 From: Skillz4Killz Date: Tue, 2 Nov 2021 03:00:41 +0000 Subject: [PATCH] change: prettier code --- src/rest/process_global_queue.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest/process_global_queue.ts b/src/rest/process_global_queue.ts index 9dc2a12e4..748ea4d29 100644 --- a/src/rest/process_global_queue.ts +++ b/src/rest/process_global_queue.ts @@ -88,8 +88,8 @@ export async function processGlobalQueue(rest: RestManager) { // If NOT rate limited remove from queue if (response.status !== 429) { // rest.debug(JSON.stringify((await response.json()).errors)); - console.log(JSON.stringify((await response.json()))); - + console.log(JSON.stringify(await response.json())); + request.request.reject(new Error(`[${response.status}] ${error}`)); } else { if (request.payload.retryCount++ >= rest.maxRetryCount) {