mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 12:13:57 +00:00
write uncaught exception to console
This commit is contained in:
parent
c2abc83f99
commit
7324cef87a
@ -27,6 +27,10 @@ let mainModule;
|
|||||||
// let getLogger;
|
// let getLogger;
|
||||||
// let loadLogsContent;
|
// let loadLogsContent;
|
||||||
|
|
||||||
|
process.on('uncaughtException', function (error) {
|
||||||
|
console.error('uncaughtException', error);
|
||||||
|
});
|
||||||
|
|
||||||
const isMac = () => os.platform() == 'darwin';
|
const isMac = () => os.platform() == 'darwin';
|
||||||
|
|
||||||
// unhandled({
|
// unhandled({
|
||||||
|
Loading…
Reference in New Issue
Block a user