node js menangkap kesalahan apa pun

process.on('uncaughtException', function(err) {
  console.log('Caught exception: ' + err);
});
Prickly Pony