8 lines
109 B
JavaScript
8 lines
109 B
JavaScript
try {
|
|
require('some-module');
|
|
} catch (err) {
|
|
console.error(err);
|
|
process.exit(1);
|
|
}
|
|
|
|
process.exit(0);
|