mirror of
https://github.com/electron/electron.git
synced 2026-01-07 22:54:25 -05:00
9 lines
180 B
JavaScript
9 lines
180 B
JavaScript
process.on('uncaughtException', (err) => {
|
|
console.error(err);
|
|
process.exit(1);
|
|
});
|
|
|
|
const { net } = await import('electron/common');
|
|
|
|
process.exit(net !== undefined ? 0 : 1);
|