mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-19 17:39:16 +02:00
Don't hide errors if they are unexpected.
This commit is contained in:
parent
e6f0d5bf44
commit
7060108a8b
@ -518,7 +518,11 @@ async function doMakeImage(task) {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
finalJSON += jsonStr
|
||||
if (e instanceof SyntaxError && e.message.startsWith('JSON.parse')) {
|
||||
finalJSON += jsonStr
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
prevTime = t
|
||||
|
Loading…
x
Reference in New Issue
Block a user