Started work on flair

This commit is contained in:
rainbownapkin 2024-11-19 22:07:24 -05:00
parent 0fcd72b063
commit 4b4cb2ed3d
9 changed files with 149 additions and 10 deletions

View file

@ -19,4 +19,9 @@ module.exports.exceptionHandler = function(res, err){
//if not yell at the browser for fucking up, and tell it what it did wrong.
res.status(400);
return res.send({errors: [{type: "Caught Exception", msg: err.message, date: new Date()}]});
}
module.exports.socketExceptionHandler = function(socket, err){
//if not yell at the browser for fucking up, and tell it what it did wrong.
return socket.emit("error", {errors: [{type: "Caught Exception", msg: err.message, date: new Date()}]});
}