mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-07-15 22:05:08 +02:00
Don't hide errors if they are unexpected.
This commit is contained in:
@ -518,7 +518,11 @@ async function doMakeImage(task) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
if (e instanceof SyntaxError && e.message.startsWith('JSON.parse')) {
|
||||||
finalJSON += jsonStr
|
finalJSON += jsonStr
|
||||||
|
} else {
|
||||||
|
throw e
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
prevTime = t
|
prevTime = t
|
||||||
|
Reference in New Issue
Block a user