mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-18 21:18:48 +02:00
In case of failure, display error in renderRequest.detail
This commit is contained in:
@@ -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"
|
||||||
|
Reference in New Issue
Block a user