This commit is contained in:
Leandro Facchinetti 2020-03-22 11:42:08 -04:00
parent 124c6148da
commit 38e190ea52
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,10 @@ export const emailServer = new SMTPServer({
await fs.writeFile(path, renderXML(xml));
}
callback();
})().catch(callback);
})().catch(error => {
console.error(error);
stream.end(() => callback(error));
});
}
}).listen(process.env.NODE_ENV === "production" ? 25 : 2525);