|
|
@ -7,7 +7,7 @@ const mkdirp = require("mkdirp");
|
|
|
|
module.exports = function(errorPath) {
|
|
|
|
module.exports = function(errorPath) {
|
|
|
|
mkdirp.sync(errorPath);
|
|
|
|
mkdirp.sync(errorPath);
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = reportErrors(errorPath, {
|
|
|
|
return reportErrors(errorPath, {
|
|
|
|
doNotCrash: true,
|
|
|
|
doNotCrash: true,
|
|
|
|
handler: (error, context) => {
|
|
|
|
handler: (error, context) => {
|
|
|
|
console.error("Unhandled error:", error.stack);
|
|
|
|
console.error("Unhandled error:", error.stack);
|
|
|
|