From f3e6745b5818b0c826f9068dfdfd212f1fcee808 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@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)) }