| 2312 | imagePath = await sendGenerationRequest(generationType, prompt, negativePromptPrefix, characterName, callback, initiator, abortController.signal); | 2312 | imagePath = await sendGenerationRequest(generationType, prompt, negativePromptPrefix, characterName, callback, initiator, abortController.signal); |
| 2313 | } catch (err) { | 2313 | } catch (err) { |
| 2314 | console.trace(err); | 2314 | console.trace(err); |
| 2315 | throw new Error('SD prompt text generation failed.'); | 2315 | toastr.error('SD prompt text generation failed. Reason: ' + err, 'Image Generation'); |
| | 2316 | throw new Error('SD prompt text generation failed. Reason: ' + err); |
| 2316 | } | 2317 | } |
| 2317 | finally { | 2318 | finally { |
| 2318 | $(stopButton).hide(); | 2319 | $(stopButton).hide(); |