mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-15 11:30:09 +01:00
Error handling for Comfy request
This commit is contained in:
parent
901ffa3cdc
commit
eab545cafc
@ -2673,6 +2673,10 @@ async function generateComfyImage(prompt, negativePrompt) {
|
||||
}`,
|
||||
}),
|
||||
});
|
||||
if (!promptResult.ok) {
|
||||
const text = await promptResult.text();
|
||||
throw new Error(text);
|
||||
}
|
||||
return { format: 'png', data: await promptResult.text() };
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user