mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-11 13:08:24 +02:00
Improve the error reporting; Ensure that the stop button has been reset if there's an error
This commit is contained in:
parent
28e002e248
commit
310abcd8b9
@ -793,7 +793,7 @@ async function doMakeImage(reqBody, batchCount) {
|
|||||||
|
|
||||||
prevTime = t
|
prevTime = t
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError('Stable Diffusion had an error. Please check the logs in the command-line window. This happens sometimes. Maybe modify the prompt or seed a little bit?', res)
|
logError('Stable Diffusion had an error. Please check the logs in the command-line window.', res)
|
||||||
res = undefined
|
res = undefined
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
@ -801,9 +801,9 @@ async function doMakeImage(reqBody, batchCount) {
|
|||||||
|
|
||||||
if (res.status != 200) {
|
if (res.status != 200) {
|
||||||
if (serverStatus === 'online') {
|
if (serverStatus === 'online') {
|
||||||
logError('Stable Diffusion had an error: ' + await res.text() + '. This happens sometimes. Maybe modify the prompt or seed a little bit?', res)
|
logError('Stable Diffusion had an error: ' + await res.text(), res)
|
||||||
} else {
|
} else {
|
||||||
logError("Stable Diffusion is still starting up, please wait. If this goes on beyond a few minutes, Stable Diffusion has probably crashed.", res)
|
logError("Stable Diffusion is still starting up, please wait. If this goes on beyond a few minutes, Stable Diffusion has probably crashed. Please check the error message in the command-line window.", res)
|
||||||
}
|
}
|
||||||
res = undefined
|
res = undefined
|
||||||
progressBar.style.display = 'none'
|
progressBar.style.display = 'none'
|
||||||
@ -833,9 +833,10 @@ async function doMakeImage(reqBody, batchCount) {
|
|||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log('request error', e)
|
console.log('request error', e)
|
||||||
logError('Stable Diffusion had an error. Please check the logs in the command-line window. This happens sometimes. Maybe modify the prompt or seed a little bit?', res)
|
logError('Stable Diffusion had an error. Please check the logs in the command-line window. <br/><br/>' + e + '<br/><pre>' + e.stack + '</pre>', res)
|
||||||
setStatus('request', 'error', 'error')
|
setStatus('request', 'error', 'error')
|
||||||
progressBar.style.display = 'none'
|
progressBar.style.display = 'none'
|
||||||
|
res = undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!res) {
|
if (!res) {
|
||||||
|
Loading…
Reference in New Issue
Block a user