Add JSON.stringify(data?.errors)

This commit is contained in:
Sefinek 2024-11-10 00:55:23 +01:00
parent a1f7931de7
commit a83c440284

View file

@ -21,7 +21,7 @@ const fetchBlockedIPs = async () => {
log('log', `Fetched ${events.length} events from Cloudflare`); log('log', `Fetched ${events.length} events from Cloudflare`);
return events; return events;
} else { } else {
log('error', `Failed to retrieve data from Cloudflare. Status: ${status}`, data?.errors); log('error', `Failed to retrieve data from Cloudflare (status ${status}); ${JSON.stringify(data?.errors)}`);
return null; return null;
} }
} catch (err) { } catch (err) {