Pollinations: write failed image request body to console

99d473654f5b679f2de2a3f98a46af5f28b7bf43

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -1Showing whitespace changes
src/endpoints/stable-diffusion.js+2 -1
@@ -834,7 +834,8 @@ pollinations.post('/generate', async (request, response) => {
834834 const result = await fetch(promptUrl);
835835
836836 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);
838839 throw new Error('Pollinations request failed.');
839840 }
840841