diff --git a/index.js b/index.js index a8c282f..729f80c 100644 --- a/index.js +++ b/index.js @@ -160,4 +160,12 @@ app.get("/*", (req, res) => { res.write(baseEnd) res.end() -}) \ No newline at end of file +}) + +process.on('uncaughtException', (err, origin) => { + fs.writeSync( + process.stderr.fd, + `Caught exception: ${err}\n` + + `Exception origin: ${origin}`, + ); + }); \ No newline at end of file diff --git a/resources/watch.html b/resources/watch.html index 6f4e03a..4037ca6 100644 --- a/resources/watch.html +++ b/resources/watch.html @@ -10,7 +10,9 @@ - + + + {TITLE}