From 1288147a52951a7369678b04956c7ebb461b40f7 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:35:23 +1100 Subject: [PATCH] Match webhook's error message. --- src/modules/MPModule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/MPModule.ts b/src/modules/MPModule.ts index 1319c8e..2692fe6 100644 --- a/src/modules/MPModule.ts +++ b/src/modules/MPModule.ts @@ -130,7 +130,7 @@ export async function requestServerData(client:TClient, server:IServer):Promise< if (data.status === 200 ?? 204) return data; else if (data.status === 404) Logger.console('log', loggingPrefix, `(${i+1}/${maxRetries}) ${server.serverName} responded with an error (404), API is disabled or mismatched code`) } catch(err) { - Logger.console('log', loggingPrefix, `Couldn't get the data for ${server.serverName}: ${err.message}`); + Logger.console('log', loggingPrefix, `Couldn't get data for ${server.serverName}: ${err.message}`); } await new Promise(resolve=>setTimeout(resolve, 500)) }