print information about the place where the error occurred
Print information for all uncaughtException
require('./index')();
throw new Error('error!!!');
Print information for custom exception
const printErr = require('printerr')();
try {
throw new Error('error!!!');
} catch (e) {
printErr(e);
}
require('./index')(console.debug);
throw new Error('error!!!');