Don't hide errors if they are unexpected.

This commit is contained in:
Marc-Andre Ferland 2022-10-10 22:27:49 -04:00
parent e6f0d5bf44
commit 7060108a8b

View File

@ -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