Pass through errors coming from FAL to the user

This commit is contained in:
Kristan Schlikow
2025-02-13 21:43:08 +01:00
parent b033b98532
commit 76becb43ae
2 changed files with 8 additions and 1 deletions

View File

@ -3555,6 +3555,7 @@ async function generateFalaiImage(prompt, negativePrompt, signal) {
return { format: 'jpg', data: data.image };
} else {
const text = await result.text();
console.log(text);
throw new Error(text);
}
}