mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 00:05:39 -05:00
Match webhook's error message.
This commit is contained in:
parent
26b1d52d2b
commit
1288147a52
@ -130,7 +130,7 @@ export async function requestServerData(client:TClient, server:IServer):Promise<
|
|||||||
if (data.status === 200 ?? 204) return data;
|
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`)
|
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) {
|
} 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))
|
await new Promise(resolve=>setTimeout(resolve, 500))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user