Skip to content

Commit e2d8fd0

Browse files
committed
process.exit(1) when there is an error in ESM loading
1 parent 896a746 commit e2d8fd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ Module._load = function(request, parent, isMain) {
450450
try {
451451
ESM.loader.import(request).catch((e) => {
452452
console.error(e);
453-
throw e;
453+
process.exit(1);
454454
});
455455
return;
456456
} catch (e) {

0 commit comments

Comments
 (0)