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