mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 09:57:49 +02:00
In case of failure, display error in renderRequest.detail
This commit is contained in:
parent
b051685727
commit
305f2fa448
@ -522,7 +522,7 @@ async function doMakeImage(task) {
|
|||||||
|
|
||||||
if (typeof renderRequest?.stream !== 'string') {
|
if (typeof renderRequest?.stream !== 'string') {
|
||||||
console.log('Endpoint response: ', renderRequest)
|
console.log('Endpoint response: ', renderRequest)
|
||||||
throw new Error('Endpoint response does not contains a response stream url.')
|
throw new Error(renderRequest.detail || 'Endpoint response does not contains a response stream url.')
|
||||||
}
|
}
|
||||||
|
|
||||||
task['taskStatusLabel'].innerText = "Waiting"
|
task['taskStatusLabel'].innerText = "Waiting"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user