Skip to content

Commit 61c88a5

Browse files
committed
ci: exit on promise rejection
1 parent 4a87384 commit 61c88a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,8 @@ const handlerMap = {
5959
'window.themes=' + JSON.stringify(result)
6060
);
6161
})();
62+
63+
process.on('unhandledRejection', (error) => {
64+
console.error('unhandledRejection', error);
65+
process.exit(1);
66+
});

0 commit comments

Comments
 (0)