Pollinations: write failed image request body to console

This commit is contained in:
Cohee
2025-05-19 00:15:08 +03:00
parent 864a733663
commit 99d473654f

View File

@@ -834,7 +834,8 @@ pollinations.post('/generate', async (request, response) => {
const result = await fetch(promptUrl);
if (!result.ok) {
console.warn('Pollinations returned an error.', result.status, result.statusText);
const text = await result.text();
console.warn('Pollinations returned an error.', text);
throw new Error('Pollinations request failed.');
}