mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-02-17 02:40:56 +01: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) {
|
} catch (e) {
|
||||||
finalJSON += jsonStr
|
if (e instanceof SyntaxError && e.message.startsWith('JSON.parse')) {
|
||||||
|
finalJSON += jsonStr
|
||||||
|
} else {
|
||||||
|
throw e
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
prevTime = t
|
prevTime = t
|
||||||
|
Loading…
Reference in New Issue
Block a user