In case of failure, display error in renderRequest.detail

This commit is contained in:
Marc-Andre Ferland 2022-10-22 12:32:41 -04:00
parent b051685727
commit 305f2fa448

View File

@ -522,7 +522,7 @@ async function doMakeImage(task) {
if (typeof renderRequest?.stream !== 'string') {
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"