BlogSharer/index.js
2024-07-06 22:26:22 -05:00

13 lines
No EOL
285 B
JavaScript

const express = require("express"),
fs = require("fs"),
path = require("path")
require("./exposer.js")
process.on('uncaughtException', (err, origin) => {
fs.writeSync(
process.stderr.fd,
`Caught exception: ${err}\n` +
`Exception origin: ${origin}`,
);
});