2023-12-28 17:26:32 -06:00
|
|
|
const express = require("express"),
|
|
|
|
fs = require("fs"),
|
2024-07-06 21:56:39 -05:00
|
|
|
path = require("path")
|
2023-12-28 17:26:32 -06:00
|
|
|
|
2024-07-06 22:26:22 -05:00
|
|
|
require("./exposer.js")
|
2024-03-23 14:43:33 -05:00
|
|
|
|
|
|
|
process.on('uncaughtException', (err, origin) => {
|
|
|
|
fs.writeSync(
|
|
|
|
process.stderr.fd,
|
|
|
|
`Caught exception: ${err}\n` +
|
|
|
|
`Exception origin: ${origin}`,
|
|
|
|
);
|
|
|
|
});
|