mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Pollinations: write failed image request body to console
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user