Started work on flair
This commit is contained in:
parent
0fcd72b063
commit
4b4cb2ed3d
9 changed files with 149 additions and 10 deletions
|
|
@ -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()}]});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue