diff options
author | BuildTools <unconfigured@null.spigotmc.org> | 2017-10-03 09:22:28 +0200 |
---|---|---|
committer | BuildTools <unconfigured@null.spigotmc.org> | 2017-10-03 09:22:28 +0200 |
commit | d3ce5eb39a70e39ada24d6b70c5faa66220fab0b (patch) | |
tree | 557508867e9fea752994601796fec66cd856ab1e | |
parent | Merge branch 'master' of github.com:Titely/markdown-viewer (diff) |
uncaughtException
-rw-r--r-- | app.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -14,6 +14,9 @@ const error = fs.createWriteStream('node.error.log'); process.stdout.write = access.write.bind(access); process.stderr.write = error.write.bind(error); +process.on('uncaughtException', function(err) { + console.error("[" + new Date() + "] > " + "Error - " + err); +}); converter.setOption('parseImgDimensions', 'true'); converter.setOption('literalMidWordUnderscores', 'true'); |