Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Commit af46872

Browse files
committed
uncaughtException handler.
1 parent 1edaa80 commit af46872

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ const { homedir } = require('os');
44
const { join } = require('path');
55

66
(async() => {
7+
process.on('uncaughtException', function(err) {
8+
console.log(err);
9+
});
710
const conn = new Connection('localhost:55400', {
811
cert: readFileSync(join(homedir(), '.chia', 'mainnet', 'config/ssl/daemon/private_daemon.crt')),
912
key: readFileSync(join(homedir(), '.chia', 'mainnet', 'config/ssl/daemon/private_daemon.key')),

0 commit comments

Comments
 (0)