Skip to content

Commit 12a81af

Browse files
committed
refactor: use promise catch
1 parent ec6b6ab commit 12a81af

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: build.mjs

+2-4
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ async function buildUI(...apps) {
8080
}
8181
}
8282

83-
try {
84-
await Promise.all([buildExtension(), buildUI('ing', 'post-cfg')])
85-
} catch (ex) {
83+
await Promise.all([buildExtension(), buildUI('ing', 'post-cfg')]).catch(ex => {
8684
console.error(ex)
8785
process.exit(1)
88-
}
86+
})

0 commit comments

Comments
 (0)