Started work on migration UI. Improved email handling.
This commit is contained in:
parent
bddbd9cd36
commit
eb48b92551
9 changed files with 252 additions and 23 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue