Update
This commit is contained in:
parent
f9a66726e5
commit
41ea4201d8
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -24,7 +24,7 @@ const fetchBlockedIPs = async () => {
|
|||
throw new Error(`Failed to retrieve data from Cloudflare. Status: ${res.status}`);
|
||||
}
|
||||
} catch (err) {
|
||||
log('error', err.response ? `${err.response.status} HTTP ERROR (Cloudflare)\n${JSON.stringify(err.response.data, null, 2)}` : `Unknown error with Cloudflare: ${err.message}`);
|
||||
log('error', err.response ? `${err.response.status} HTTP ERROR (Cloudflare API)\n${JSON.stringify(err.response.data, null, 2)}` : `Unknown error with Cloudflare API: ${err.message}`);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue