style: format shared http refactor

This commit is contained in:
2026-04-29 21:05:36 -04:00
parent 5d86a4e54d
commit f5339cadf1
2 changed files with 32 additions and 8 deletions

View File

@@ -1071,7 +1071,11 @@ export default async function fetchFacebookItems(
logger.warn(
`\nFacebook marketplace access failed (${err.statusCode}): ${err.message}`,
);
if (err.statusCode === 400 || err.statusCode === 401 || err.statusCode === 403) {
if (
err.statusCode === 400 ||
err.statusCode === 401 ||
err.statusCode === 403
) {
logger.warn(
"This might indicate invalid or expired cookies. Update FACEBOOK_COOKIE with a fresh raw Cookie header string.",
);
@@ -1079,9 +1083,7 @@ export default async function fetchFacebookItems(
return finalizeResults([]);
}
if (err instanceof RateLimitError) {
logger.warn(
`\nFacebook marketplace access rate limited: ${err.message}`,
);
logger.warn(`\nFacebook marketplace access rate limited: ${err.message}`);
return finalizeResults([]);
}
throw err;