JS Build: Fix watch exits if omni update fails

This commit is contained in:
Tom Najdek 2024-04-02 17:38:15 +02:00
parent 009f2a5607
commit 0f6cae891d
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77

View file

@ -144,8 +144,13 @@ async function processFiles(mutex) {
onSuccess(await cleanUp(signatures));
if (shouldAddOmni && aggrResult?.outFiles?.length) {
try {
onSuccess(await addOmniFiles(aggrResult.outFiles));
}
catch (err) {
onError(`omni update failed: ${err}`);
}
}
}
finally {
mutex.isLocked = false;