Started work on migration UI. Improved email handling.

This commit is contained in:
rainbow napkin 2025-10-16 08:25:13 -04:00
parent bddbd9cd36
commit eb48b92551
9 changed files with 252 additions and 23 deletions

View file

@ -173,10 +173,10 @@ module.exports.errorMiddleware = function(err, req, res, next){
* @param {Error} err - error to dump to file
* @param {Date} date - Date of error, defaults to now
*/
module.exports.dumpError = async function(err, date = new Date()){
module.exports.dumpError = async function(err, date = new Date(), subDir){
try{
//Crash directory
const dir = "./log/crash/"
const dir = `./log/crash/${subDir}`
//Double check crash folder exists
try{