api/cookie: rephrase non-string warning

This commit is contained in:
jj 2024-11-26 13:55:18 +00:00
parent 00ac025235
commit 20074a5091
No known key found for this signature in database

View file

@ -40,7 +40,7 @@ const setupMain = async (cookiePath) => {
} else if (!Array.isArray(cookies[serviceName])) {
console.warn(`${Yellow('[!]')} ${serviceName} in cookies file is not an array, ignoring it`);
} else if (cookies[serviceName].some(c => typeof c !== 'string')) {
console.warn(`${Yellow('[!]')} cookies file contains non-string value for ${serviceName}`);
console.warn(`${Yellow('[!]')} some cookie for ${serviceName} contains non-string value in cookies file`);
} else continue;
invalidCookies[serviceName] = cookies[serviceName];