Add date to Uncaught Exceptions
parent
4c34d3e389
commit
d219b0979f
|
@ -3,7 +3,7 @@ module.exports = function(process,__dirname){
|
||||||
var packageJson = require('../package.json')
|
var packageJson = require('../package.json')
|
||||||
process.send = process.send || function () {};
|
process.send = process.send || function () {};
|
||||||
process.on('uncaughtException', function (err) {
|
process.on('uncaughtException', function (err) {
|
||||||
console.error('Uncaught Exception occured!');
|
console.error(`Uncaught Exception occured! ${new Date()}`);
|
||||||
console.error(err.stack);
|
console.error(err.stack);
|
||||||
});
|
});
|
||||||
// [CTRL] + [C] = exit
|
// [CTRL] + [C] = exit
|
||||||
|
|
Loading…
Reference in New Issue