Pollinations: write failed image request body to console
| @@ -834,7 +834,8 @@ pollinations.post('/generate', async (request, response) => { | |||
| 834 | const result = await fetch(promptUrl); | 834 | const result = await fetch(promptUrl); |
| 835 | 835 | ||
| 836 | if (!result.ok) { | 836 | if (!result.ok) { |
| 837 | console.warn('Pollinations returned an error.', result.status, result.statusText); | 837 | const text = await result.text(); |
| 838 | console.warn('Pollinations returned an error.', text); | ||
| 838 | throw new Error('Pollinations request failed.'); | 839 | throw new Error('Pollinations request failed.'); |
| 839 | } | 840 | } |
| 840 | 841 | ||