13 lines
No EOL
285 B
JavaScript
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}`,
|
|
);
|
|
}); |