JS Build: Fix watch exits if omni update fails
This commit is contained in:
parent
009f2a5607
commit
0f6cae891d
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue