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,7 +144,12 @@ async function processFiles(mutex) {
onSuccess(await cleanUp(signatures));
if (shouldAddOmni && aggrResult?.outFiles?.length) {
onSuccess(await addOmniFiles(aggrResult.outFiles));
try {
onSuccess(await addOmniFiles(aggrResult.outFiles));
}
catch (err) {
onError(`omni update failed: ${err}`);
}
}
}
finally {