From 7d46ca212b7ae6c9b8199b159b9d0058769c22ac Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Sat, 3 Aug 2024 00:06:48 +0200 Subject: [PATCH] Expand/show DS prompt gen error --- public/scripts/extensions/stable-diffusion/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js index 92d4ae30f..83ec179ad 100644 --- a/public/scripts/extensions/stable-diffusion/index.js +++ b/public/scripts/extensions/stable-diffusion/index.js @@ -2312,7 +2312,8 @@ async function generatePicture(initiator, args, trigger, message, callback) { imagePath = await sendGenerationRequest(generationType, prompt, negativePromptPrefix, characterName, callback, initiator, abortController.signal); } catch (err) { console.trace(err); - throw new Error('SD prompt text generation failed.'); + toastr.error('SD prompt text generation failed. Reason: ' + err, 'Image Generation'); + throw new Error('SD prompt text generation failed. Reason: ' + err); } finally { $(stopButton).hide();