Stop hiding exceptions after read is complete.

This commit is contained in:
Marc-Andre Ferland 2022-10-11 20:08:44 -04:00
parent 5a36d280d7
commit f269facf9d

View File

@ -519,7 +519,7 @@ async function doMakeImage(task) {
stepUpdate = JSON.parse(finalJSON) stepUpdate = JSON.parse(finalJSON)
finalJSON = jsonStr finalJSON = jsonStr
} catch (e) { } catch (e) {
if (e instanceof SyntaxError) { if (e instanceof SyntaxError && !readComplete) {
finalJSON += jsonStr finalJSON += jsonStr
} else { } else {
throw e throw e