electron/spec/fixtures/api/electron-main-module/app/index.js

9 lines
109 B
JavaScript
Raw Normal View History

try {
2020-03-20 14:28:31 -06:00
require('some-module');
} catch (err) {
2020-03-20 14:28:31 -06:00
console.error(err);
process.exit(1);
}
2020-03-20 14:28:31 -06:00
process.exit(0);