Git commit handling

This commit is contained in:
NGPixel
2016-08-25 18:55:42 -04:00
parent 32c50eea7e
commit cc1e6b4432
2 changed files with 64 additions and 8 deletions

View File

@@ -4,6 +4,14 @@
// Licensed under AGPLv3
// ===========================================
process.on('uncaughtException', function (exception) {
console.log(exception);
});
process.on('unhandledRejection', (reason, p) => {
console.log("Unhandled Rejection at: Promise ", p, " reason: ", reason);
// application specific logging, throwing an error, or other logic here
});
global.ROOTPATH = __dirname;
// ----------------------------------------